#include <BinaryMinigame.h>
Inherits GameController, and ClickListener.

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. | |
| Graphic * | getDirections () |
| 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 |
| Sprite * | tube |
| WaveSound * | bucketFill |
| WaveSound * | clickSound |
| WaveSound * | bucketSwoosh |
| bool | done |
| bool | puzzleDone |
| Layer * | minigameLayer |
| Button * | goButton |
| Button * | clearButton |
| Text * | goalText |
| BinaryMinigame::BinaryMinigame | ( | int | difficulty | ) |
| BinaryMinigame::~BinaryMinigame | ( | ) |
| 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] |
| void BinaryMinigame::onClick | ( | MouseEvent * | e | ) | [virtual] |
Implements ClickListener.
| void BinaryMinigame::reset | ( | ) | [protected] |
| void BinaryMinigame::step | ( | ) | [virtual] |
| void BinaryMinigame::update | ( | ) | [protected] |
WaveSound* BinaryMinigame::bucketFill [protected] |
Bucket** BinaryMinigame::buckets [protected] |
WaveSound * BinaryMinigame::bucketSwoosh [protected] |
Text** BinaryMinigame::bucketText [protected] |
Button * BinaryMinigame::clearButton [protected] |
WaveSound * BinaryMinigame::clickSound [protected] |
int BinaryMinigame::dec1 [protected] |
int BinaryMinigame::dec2 [protected] |
int BinaryMinigame::difficulty [protected] |
bool BinaryMinigame::done [protected] |
int BinaryMinigame::goal [protected] |
Text* BinaryMinigame::goalText [protected] |
Button* BinaryMinigame::goButton [protected] |
Layer* BinaryMinigame::minigameLayer [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] |
Sprite* BinaryMinigame::tube [protected] |
1.5.7.1