BinaryMinigame Class Reference
[Binary minigame]

#include <BinaryMinigame.h>

Inherits GameController, and ClickListener.

Collaboration diagram for BinaryMinigame:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BinaryMinigame (int difficulty)
 ~BinaryMinigame ()
void draw (BITMAP *canvas)
 This function will also be called each screen refresh to draw to the buffer.
void step ()
 This function will be called each time unit of the game.
bool isComplete ()
 This function can be called to check if the GameController is done.
GraphicgetDirections ()
void clickOnBucket (Bucket *buck)
void onClick (MouseEvent *e)

Static Public Member Functions

static void defineNames ()

Protected Member Functions

void emptyBuckets ()
string getMessage ()
string getHardMessage ()
string getHarderMessage ()
string binarizer (int x, int y)
void update ()
void reset ()
void completion ()

Protected Attributes

int goal
int total
int difficulty
int dec1
int dec2
int progress
bool Swooshed3
bool Swooshed2
bool Swooshed1
bool Swooshed0
Bucket ** buckets
Text ** bucketText
Spritetube
WaveSoundbucketFill
WaveSoundclickSound
WaveSoundbucketSwoosh
bool done
bool puzzleDone
LayerminigameLayer
ButtongoButton
ButtonclearButton
TextgoalText


Constructor & Destructor Documentation

BinaryMinigame::BinaryMinigame ( int  difficulty  ) 

BinaryMinigame::~BinaryMinigame (  ) 


Member Function Documentation

string BinaryMinigame::binarizer ( int  x,
int  y 
) [protected]

void BinaryMinigame::clickOnBucket ( Bucket buck  ) 

void BinaryMinigame::completion (  )  [protected]

void BinaryMinigame::defineNames (  )  [static]

void BinaryMinigame::draw ( BITMAP *   )  [virtual]

This function will also be called each screen refresh to draw to the buffer.

Implements GameController.

void BinaryMinigame::emptyBuckets (  )  [protected]

Graphic * BinaryMinigame::getDirections (  )  [virtual]

Reimplemented from GameController.

string BinaryMinigame::getHarderMessage (  )  [protected]

string BinaryMinigame::getHardMessage (  )  [protected]

string BinaryMinigame::getMessage (  )  [protected]

bool BinaryMinigame::isComplete (  )  [virtual]

This function can be called to check if the GameController is done.

Implements GameController.

void BinaryMinigame::onClick ( MouseEvent e  )  [virtual]

Implements ClickListener.

void BinaryMinigame::reset (  )  [protected]

void BinaryMinigame::step (  )  [virtual]

This function will be called each time unit of the game.

Implements GameController.

void BinaryMinigame::update (  )  [protected]


Member Data Documentation

int BinaryMinigame::dec1 [protected]

int BinaryMinigame::dec2 [protected]

int BinaryMinigame::difficulty [protected]

bool BinaryMinigame::done [protected]

int BinaryMinigame::goal [protected]

int BinaryMinigame::progress [protected]

bool BinaryMinigame::puzzleDone [protected]

bool BinaryMinigame::Swooshed0 [protected]

bool BinaryMinigame::Swooshed1 [protected]

bool BinaryMinigame::Swooshed2 [protected]

bool BinaryMinigame::Swooshed3 [protected]

int BinaryMinigame::total [protected]


The documentation for this class was generated from the following files:

Generated on Mon Mar 16 14:33:06 2009 for LearningGaming by  doxygen 1.5.7.1