#include <class.map.hh>

Public Member Functions | |
| CMap () | |
| ~CMap () | |
| bool | Init (const char *szMapFilePath, SDL_Surface *pTargetSurface) |
| void | Cleanup () |
| bool | CheckPixelBoundsXY (int x, int y) |
| Tests if coordinates are out of bounds. | |
| bool | CheckMapBoundsXY (int x, int y) |
| Tests if coordinates are out of bounds. | |
| bool | CollisionXY (int x, int y) |
| Tests for collisions with the tiles. | |
Public Attributes | |
| bool | mbInit |
| CSprite * | mpTiles [G_MAP_WIDTH][G_MAP_HEIGHT] |
| SDL_Surface * | mpTargetSurface |
| CMusic * | mpMusic |
| CMap::CMap | ( | ) |
| CMap::~CMap | ( | ) |
| bool CMap::Init | ( | const char * | szMapFilePath, | |
| SDL_Surface * | pTargetSurface | |||
| ) |
| void CMap::Cleanup | ( | ) |
| bool CMap::CheckPixelBoundsXY | ( | int | x, | |
| int | y | |||
| ) |
Tests if coordinates are out of bounds.
| x | The X position is in pixels. | |
| y | The Y position is in pixels. |
| bool CMap::CheckMapBoundsXY | ( | int | x, | |
| int | y | |||
| ) |
Tests if coordinates are out of bounds.
| x | The X position is in map coordinates. | |
| y | The Y position is in map coordinates. |
| bool CMap::CollisionXY | ( | int | x, | |
| int | y | |||
| ) |
Tests for collisions with the tiles.
| x | The X position is in map coordinates. | |
| y | The Y position is in map coordinates. |
| bool CMap::mbInit |
| CSprite* CMap::mpTiles[G_MAP_WIDTH][G_MAP_HEIGHT] |
| SDL_Surface* CMap::mpTargetSurface |
1.5.5