#include <map.h>
Public Member Functions | |
Map () | |
virtual | ~Map () |
virtual void | load (MapId mapId) |
virtual void | clear () |
virtual void | synchronize (Common::Serializer &s) |
MapWidget * | createWidget (const Common::String &name) |
void | getTileAt (const Point &pt, MapTile *tile, bool includePlayer=true) |
void | setTileAt (const Point &pt, uint tileId) |
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 () |
void | castSpell (uint spellId) |
Protected Attributes | |
MapBase * | _mapArea |
Base class for managing maps within the game
|
inline |
Constructor
|
inlinevirtual |
Destructor
|
virtual |
Load a given map
Reimplemented in Ultima::Ultima1::Maps::Ultima1Map.
|
virtual |
Clears all map data
Reimplemented in Ultima::Ultima1::Maps::Ultima1Map.
|
virtual |
Handles loading and saving the map's data
Reimplemented in Ultima::Ultima1::Maps::Ultima1Map.
|
inline |
Instantiates a widget type by name
|
inline |
Gets a tile at a given position
|
inline |
Sets 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
|
inline |
Cast a specific spell