MSTE - MegaStorm Tile-based Engine  v1.10
 All Classes Functions Groups Pages
Public Member Functions | List of all members
cMSTE_MapData Class Referenceabstract

MapData abstract base class. More...

Inheritance diagram for cMSTE_MapData:
cMSTE_MapBase

Public Member Functions

 cMSTE_MapData ()
 MapData constructor.
 
template<typename T >
T ** Create2DArray (int height, int width)
 Create a dynamic 2D array of a given data type. More...
 
template<typename T >
void Delete2DArray (T **Array)
 Delete a dynamic 2D array.
 
int GetCellHeight ()
 Get cell height. More...
 
int GetCellWidth ()
 Get cell width. More...
 
int GetMapHeight ()
 Get map height. More...
 
char * GetMapType ()
 Get map type. More...
 
int GetMapWidth ()
 Get map width. More...
 
void SetCellHeight (int size)
 Set tile height. More...
 
void SetCellWidth (int size)
 Set cell width. More...
 
virtual ~cMSTE_MapData ()
 MapData destructor.
 

Detailed Description

MapData abstract base class.

MapData class definition.

Member Function Documentation

int cMSTE_MapData::GetCellHeight ( )

Get cell height.

Returns
integer with the cell height (in pixels)
int cMSTE_MapData::GetCellWidth ( )

Get cell width.

Returns
integer with the cell width (in pixels)
int cMSTE_MapData::GetMapHeight ( )

Get map height.

Returns
height of this map(in number of tiles)
Examples:
Example04_Custom.cpp.
char * cMSTE_MapData::GetMapType ( )

Get map type.

Returns
Pointer to the string with the map type name
int cMSTE_MapData::GetMapWidth ( )

Get map width.

Returns
width of this map(in number of tiles)
Examples:
Example04_Custom.cpp.
void cMSTE_MapData::SetCellHeight ( int  size)

Set tile height.

Parameters
sizeinteger with cell height (in pixels)
Examples:
Example01_Init.cpp.
void cMSTE_MapData::SetCellWidth ( int  size)

Set cell width.

Parameters
sizeinteger with cell width (in pixels)
Examples:
Example01_Init.cpp.

The documentation for this class was generated from the following files: