#include <Map.h>
Definition at line 10 of file Map.h.
Public Member Functions | |
| void | drawMinimap () |
| void | drawObjectLayer (Point offset) |
| void | drawTerrainLayer (Point offset) |
| int | getHeight () const |
| spMapTile | getMouseOverTile () |
| spMapTile | getTile (int x, int y) const |
| int | getWidth () const |
| void | highlightMouseOverTile (Point offset) |
| bool | load (istream &data) |
| Map () | |
| void | updateMouseOverTile (Point offset) |
| ~Map () | |
Private Member Functions | |
| spMapTile | getTile (Point position, Point offset) |
| bool | makeTerrain (string terrain) |
| void | populateTileNeighbors (spMapTile tile) |
Private Attributes | |
| int | _height |
| vector< spMapTile > | _mapTiles |
| spMapTile | _mouseOverTile |
| SDL_Surface * | _tileMouseMap |
| int | _width |
Static Private Attributes | |
| static map< string, TerrainType > | terrainMap |
| Map::Map | ( | ) |
Definition at line 12 of file Map.cpp.
References _tileMouseMap, GRASS, Singleton< T >::instance(), terrainMap, TILE_MOUSE_MAP, and WATER.
Here is the call graph for this function:

| Map::~Map | ( | ) |
| void Map::drawMinimap | ( | ) |
Definition at line 228 of file Map.cpp.
References _height, _width, Display::drawRect(), Display::getScreenHeight(), getTile(), GRASS, Singleton< T >::instance(), and WATER.
Here is the call graph for this function:

| void Map::drawObjectLayer | ( | Point | offset | ) |
| void Map::drawTerrainLayer | ( | Point | offset | ) |
| spMapTile Map::getMouseOverTile | ( | ) |
Definition at line 56 of file Map.cpp.
References _height, _mapTiles, _tileMouseMap, _width, MapTile::getHeight(), getTile(), MapTile::getWidth(), Point::x, and Point::y.
Here is the call graph for this function:

| spMapTile Map::getTile | ( | int | x, | |
| int | y | |||
| ) | const |
Definition at line 32 of file Map.cpp.
References _height, _mapTiles, and _width.
Referenced by drawMinimap(), drawObjectLayer(), drawTerrainLayer(), getTile(), populateTileNeighbors(), and updateMouseOverTile().
Here is the caller graph for this function:

| void Map::highlightMouseOverTile | ( | Point | offset | ) |
| bool Map::load | ( | istream & | data | ) |
Definition at line 120 of file Map.cpp.
References _height, _mapTiles, _width, MapTile::makeMapTile(), Direction::NE, NE, Direction::NW, NW, populateTileNeighbors(), Direction::SE, SE, Direction::SW, SW, and terrainMap.
Here is the call graph for this function:

| bool Map::makeTerrain | ( | string | terrain | ) | [private] |
| void Map::populateTileNeighbors | ( | spMapTile | tile | ) | [private] |
Definition at line 188 of file Map.cpp.
References Direction::getAllDirections(), and getTile().
Referenced by load().
Here is the call graph for this function:

Here is the caller graph for this function:

| void Map::updateMouseOverTile | ( | Point | offset | ) |
Definition at line 50 of file Map.cpp.
References _mouseOverTile, getTile(), and Singleton< T >::instance().
Here is the call graph for this function:

int Map::_height [private] |
Definition at line 38 of file Map.h.
Referenced by drawMinimap(), drawObjectLayer(), drawTerrainLayer(), getHeight(), getTile(), and load().
vector<spMapTile> Map::_mapTiles [private] |
spMapTile Map::_mouseOverTile [private] |
Definition at line 45 of file Map.h.
Referenced by getMouseOverTile(), highlightMouseOverTile(), and updateMouseOverTile().
SDL_Surface* Map::_tileMouseMap [private] |
int Map::_width [private] |
Definition at line 37 of file Map.h.
Referenced by drawMinimap(), drawObjectLayer(), drawTerrainLayer(), getTile(), getWidth(), and load().
map< string, TerrainType > Map::terrainMap [static, private] |
1.4.7