Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

IsoMap Class Reference

#include <IsoMap.h>

Inheritance diagram for IsoMap:
Map IsoBlock

List of all members.

Public Member Functions

 IsoMap (const std::string &filePath, const std::string &driverName)
 IsoMap (int width, int height, TileSet &tset)
 ~IsoMap ()

Protected Member Functions

int peekMouseMap (int x, int y)

Protected Attributes

std::map< Uint, int > mMouseMapHash
int mHalfTileWidth
int mHalfTileHeight

Private Member Functions

void init ()
int loadMouseMap (const std::string &fileName)
virtual void updateCursor ()

Private Attributes

int mCursorOffsetX
int mCursorOffsetY
ImagemMouseCursor
ImagemMouseMap

Constructor & Destructor Documentation

IsoMap::IsoMap ( const std::string &  filePath,
const std::string &  driverName 
)
IsoMap::IsoMap ( int  width,
int  height,
TileSet tset 
)
IsoMap::~IsoMap (  ) 

Member Function Documentation

void IsoMap::init (  )  [private]
int IsoMap::loadMouseMap ( const std::string &  fileName  )  [private]
int IsoMap::peekMouseMap ( int  x,
int  y 
) [protected]

Returns an enumerated int value indicating which region of an isometric tile rectangle a defined point is resting on.

Parameters:
x 
y 
Returns:
Region enumeration. Negative value indicates an error.
void IsoMap::updateCursor (  )  [private, virtual]

Updates tile cursor position and draws the cursor in the correct position.

Implements Map.


Member Data Documentation

int IsoMap::mCursorOffsetX [private]
int IsoMap::mCursorOffsetY [private]

Tile cursor offsets.

int IsoMap::mHalfTileHeight [protected]

Convenience variables used to help prevent unnecessary division calculations.

int IsoMap::mHalfTileWidth [protected]

An isometric tile cursor.

Todo:
This should be a temporary object that's destroyed once the mousemap hash is created.
std::map<Uint, int> IsoMap::mMouseMapHash [protected]

I forget how we're supposed to be looking things up with this.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines