#include <map.h>
Classes | |
class | MapBase |
Public Member Functions | |
Map () | |
virtual | ~Map () |
virtual void | load (MapId mapId) |
virtual void | clear () |
virtual void | synchronize (Common::Serializer &s) |
virtual MapWidget * | createWidget (Map::MapBase *map, const Common::String &name)=0 |
void | getTileAt (const Point &pt, MapTile *tile) |
Point | getViewportPosition (const Point &viewportSize) |
size_t | width () const |
size_t | height () const |
Point | getPosition () const |
void | setPosition (const Point &pt) |
Direction | getDirection () const |
void | setDirection (Direction dir) |
Point | getDirectionDelta () const |
Point | getDeltaPosition (const Point &delta) |
void | shiftViewport (const Point &delta) |
Point | getTilesPerOrigTile () const |
Common::String | getName () const |
MapWidget * | getPlayerWidget () const |
bool | changeLevel (int delta) |
uint | getLevel () const |
bool | isMapWrapped () const |
void | update () |
Protected Attributes | |
MapBase * | _mapArea |
Base class for managing maps within the game
|
inline |
Constructor
|
inlinevirtual |
Destructor
|
virtual |
Load a given map
|
virtual |
Clears all map data
|
virtual |
Handles loading and saving the map's data
|
pure virtual |
Instantiates a widget type by name
Gets a tile at a given position
Get the viewport position
|
inline |
Return the width of the map
|
inline |
Return the height of the map
|
inline |
Return the current position
|
inline |
Set the position
|
inline |
Get the current direction
|
inline |
Set the current direction
|
inline |
Returns a delta for the cell in front of the player based on the direction they're facing
Gets a point relative to the current position
|
inline |
Shifts the viewport by a given delta
|
inline |
Returns the number of tiles in the map there are for each tile in the original game. This allows for more detailed maps in the enhanced game modes
|
inline |
Return the name of the map
|
inline |
Returns the currently active widget that the player is controlling
|
inline |
delta | Delta to change dungeon level by |
|
inline |
Get the current map level
|
inline |
Returns whether the map wraps around to the other side at it's edges (i.e. the overworld)
|
inline |
Updates the map at the end of a turn