#include <GameTile.h>
Public Types | |
enum | InvisibleState { CLEAN, BOMB, LIFE, TIMEFREEZER } |
enum | VisibleState { COVERED, UNCOVERED, COVERED_ACTIVE, UNCOVERED_ACCTIVE, COVERED_BOMB_MARKED, COVERED_BOMB_PROPOSED, EXPLODE } |
Public Member Functions | |
void | addModel (Model *m) |
void | addNeighbor (GameTile *gt) |
GameTile (InvisibleState invState, VisibleState visState) | |
GameTile () | |
int | getBombCounter () |
int | getGoodieCounter () |
void | renderModel () |
void | setInvisibleState (InvisibleState s) |
void | setVisibleState (VisibleState s) |
void | uncover () |
Data Fields | |
int | bombCounter |
InvisibleState | currentIState |
VisibleState | currentVState |
int | goodieCounter |
vector< Model * > | modelList |
vector< GameTile * > | neighborList |
|
This enumeration contains the "value" a GameTile.
Responding to the InvisibleState of the GameTile, the next valid VisibleState is set.
Definition at line 38 of file GameTile.h. |
|
This enumeration contains valid VisibleStates. Each VisibleState represents a model in the modelList.
Definition at line 58 of file GameTile.h. |
|
Creates a game tile with the GameTile::InvisibleState CLEAN and the GameTile::VisibleState=COVERED.
Definition at line 21 of file GameTile.cpp. References bombCounter, CLEAN, COVERED, currentIState, currentVState, and goodieCounter. |
|
Creates a game tile with the GameTile::InvisibleState = invState and the GameTile::VisibleState = visState.
Definition at line 36 of file GameTile.cpp. References bombCounter, currentIState, currentVState, and goodieCounter. |
|
Adds a model to the modelList of the GameTile. The modelList references the possible Models for that GameTile.
Definition at line 88 of file GameTile.cpp. References modelList. Referenced by GameArea::GameArea(). |
|
Adds a reference to a GameTile to the neighborList.
Definition at line 100 of file GameTile.cpp. References neighborList. Referenced by GameArea::GameArea(). |
|
Returns the current bombCounter.
Definition at line 149 of file GameTile.cpp. References bombCounter. |
|
Returns the current goodieCounter.
Definition at line 159 of file GameTile.cpp. References goodieCounter. |
|
This function renders the current VisibleState. Therefore the responding model, referencen in the modelList, is searched and it's render() function is called. Definition at line 70 of file GameTile.cpp. References currentVState, modelList, and UNCOVERED. Referenced by GameArea::renderGameArea(). |
|
Set the current InvisibleState to the given InvisibleState s.
Definition at line 49 of file GameTile.cpp. References currentIState. Referenced by GameArea::spreadItems(). |
|
Set the current VisibleState to the given VisibleState s.
Definition at line 59 of file GameTile.cpp. References currentVState. Referenced by uncover(). |
|
This function switches the current VisibleState to UNCOVERED and invokes some further procedures responding to it's InvisibleState. When calling uncover, the VisibleState will be updated. Therefore the function renderModel() will show another model when called the next time. Definition at line 111 of file GameTile.cpp. References BOMB, bombCounter, CLEAN, COVERED, currentIState, currentVState, goodieCounter, LIFE, neighborList, setVisibleState(), TIMEFREEZER, and UNCOVERED. Referenced by GameArea::uncoverTile(). |
|
stores the number of bombs, near the field
Definition at line 65 of file GameTile.h. Referenced by GameArea::debugArrays(), GameTile(), getBombCounter(), GameArea::spreadItems(), and uncover(). |
|
Stores the current invisible state.
Definition at line 61 of file GameTile.h. Referenced by GameArea::debugArrays(), GameTile(), setInvisibleState(), GameArea::spreadItems(), and uncover(). |
|
stores the current visible state
Definition at line 63 of file GameTile.h. Referenced by GameTile(), renderModel(), setVisibleState(), and uncover(). |
|
stored the number of goodies near to the field
Definition at line 67 of file GameTile.h. Referenced by GameArea::debugArrays(), GameTile(), getGoodieCounter(), GameArea::spreadItems(), and uncover(). |
|
list of possible renderings
Definition at line 70 of file GameTile.h. Referenced by addModel(), and renderModel(). |
|
references of neighbor GameTiles
Definition at line 72 of file GameTile.h. Referenced by addNeighbor(), GameArea::spreadItems(), and uncover(). |