Eaagles::MovingMap::TileIndexTable Class Reference

Inherits Eaagles::Basic::LcObject.

Inheritance diagram for Eaagles::MovingMap::TileIndexTable:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::MovingMap::TileIndexTable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TileIndexTable ()
int centerRowTile ()
int centerColumnTile ()
TextureObjecttileTexIndex (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
TextureObjecttexes [MAX_TABLE_SIZE][MAX_TABLE_SIZE]

Member Enumeration Documentation

anonymous enum [private]

maximum number of data in our tables

Enumerator:
MAX_TABLE_SIZE 


Constructor & Destructor Documentation

Eaagles::MovingMap::TileIndexTable::TileIndexTable (  ) 

Constructor. Initializes parameters such as lower bound, upper bound, row, column etc.


Member Function Documentation

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.


Member Data Documentation

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]


Generated on Tue Dec 19 16:27:32 2006 for Eaagles by  doxygen 1.5.0