Inheritance diagram for Eaagles::MovingMap::TileIndexTable:


Public Member Functions | |
| TileIndexTable () | |
| int | centerRowTile () |
| int | centerColumnTile () |
| TextureObject * | tileTexIndex (int row, int col) |
| int | getMaxTableSize () |
| int | getLowerBoundIndex () |
| int | getUpperBoundIndex () |
| bool | isInBounds (const int row, const int col) |
| bool | setSize (const int newSize) |
| bool | setCenterRowTile (const int newTile) |
| bool | setCenterColumnTile (const int newTile) |
| bool | setTextureObject (int row, int col, TextureObject *newObj) |
Private Types | |
| enum | { MAX_TABLE_SIZE = 25 } |
Private Attributes | |
| int | maxTableSize |
| int | centerTablePos |
| int | lowerBound |
| int | upperBound |
| int | row |
| int | col |
| int | size |
| TextureObject * | texes [MAX_TABLE_SIZE][MAX_TABLE_SIZE] |
| Eaagles::MovingMap::TileIndexTable::TileIndexTable | ( | ) |
Constructor. Initializes parameters such as lower bound, upper bound, row, column etc.
| int Eaagles::MovingMap::TileIndexTable::centerRowTile | ( | ) |
Returns the center row tile.
| int Eaagles::MovingMap::TileIndexTable::centerColumnTile | ( | ) |
Returns the center column tile.
| TextureObject * Eaagles::MovingMap::TileIndexTable::tileTexIndex | ( | int | row, | |
| int | col | |||
| ) |
Returns the texture object at [row + centerTablePos][col + centerTablePos] in the array.
| int Eaagles::MovingMap::TileIndexTable::getMaxTableSize | ( | ) | [inline] |
Returns the maximum table size (default = 25).
| int Eaagles::MovingMap::TileIndexTable::getLowerBoundIndex | ( | ) | [inline] |
Returns the lower bound of the table.
| int Eaagles::MovingMap::TileIndexTable::getUpperBoundIndex | ( | ) | [inline] |
Returns the upper bound of the table.
| bool Eaagles::MovingMap::TileIndexTable::isInBounds | ( | const int | row, | |
| const int | col | |||
| ) |
Returns true if row and col are between the lower and upper bounds of the table.
| bool Eaagles::MovingMap::TileIndexTable::setSize | ( | const int | newSize | ) |
Sets the maximum table size to newSize if newSize <= MAX_TABLE_SIZE. Otherwise, maximum table size is set to default value of MAX_TABLE_SIZE.
| bool Eaagles::MovingMap::TileIndexTable::setCenterRowTile | ( | const int | newTile | ) |
Sets the center row tile.
| bool Eaagles::MovingMap::TileIndexTable::setCenterColumnTile | ( | const int | newTile | ) |
Sets the center column tile.
| bool Eaagles::MovingMap::TileIndexTable::setTextureObject | ( | int | row, | |
| int | col, | |||
| TextureObject * | newObj | |||
| ) |
Sets the texture object at [row + centerTablePos][col + centerTablePos] in the textures array to newObj.
int Eaagles::MovingMap::TileIndexTable::maxTableSize [private] |
int Eaagles::MovingMap::TileIndexTable::centerTablePos [private] |
int Eaagles::MovingMap::TileIndexTable::lowerBound [private] |
int Eaagles::MovingMap::TileIndexTable::upperBound [private] |
int Eaagles::MovingMap::TileIndexTable::row [private] |
int Eaagles::MovingMap::TileIndexTable::col [private] |
int Eaagles::MovingMap::TileIndexTable::size [private] |
TextureObject* Eaagles::MovingMap::TileIndexTable::texes[MAX_TABLE_SIZE][MAX_TABLE_SIZE] [private] |
1.5.0