#include <Map.h>
Collaboration diagram for Map::WorldMap:

Definition at line 77 of file Map.h.
Public Methods | |
| Int2Tuple | worldToGridCoord (Vec3D loc) |
| translates an absolute world coordinate to integer coordinates that give the grid cell of the map the absolute coordinate is contained in. Does NOT do bounds checking so you may get a value that is outside of the map. | |
Public Attributes | |
| Rect | bounds |
| FLOAT | width |
| FLOAT | height |
| int | gridWidth |
| grid is used to partition the map into discrete cells. usefull for the game ai. | |
| int | gridHeight |
|
|
translates an absolute world coordinate to integer coordinates that give the grid cell of the map the absolute coordinate is contained in. Does NOT do bounds checking so you may get a value that is outside of the map.
Definition at line 94 of file Map.h. References Rect::bounds(). Referenced by AI::Player::buildThreatMap(), and AI::Player::CityLessThreatened::operator()().
|
|
|
Definition at line 79 of file Map.h. Referenced by Map::createWorldMap(), MilitaryUnit::move(), HUD::processMiniMapInput(), Overhead::processOverheadInput(), HUD::translateMiniMapToWorld(), and HUD::translateWorldToMiniMap(). |
|
|
Definition at line 86 of file Map.h. Referenced by AI::Player::buildThreatMap(), AI::Player::clearThreatMap(), and Map::createWorldMap(). |
|
|
grid is used to partition the map into discrete cells. usefull for the game ai.
Definition at line 85 of file Map.h. Referenced by AI::Player::buildThreatMap(), AI::Player::clearThreatMap(), and Map::createWorldMap(). |
|
|
Definition at line 83 of file Map.h. Referenced by Map::createWorldMap(), and HUD::setWorldMap(). |
|
|
Definition at line 82 of file Map.h. Referenced by Map::createWorldMap(), and HUD::setWorldMap(). |
1.3-rc2