#include <maps.h>
Public Member Functions | |
void | synchronize (Common::Serializer &s) |
void | synchronizeCurrent (Common::Serializer &s) |
void | select (uint16 id, byte section) |
void | display (uint16 id, byte section=1) |
void | loadTown (TownId townId) |
Map * | getMap (uint mapId) const |
void | turnLeft () |
void | turnRight () |
void | turnAround () |
void | step (const Common::Point &delta) |
void | changeMap (uint16 id, byte section) |
void | visitedTile () |
void | clearSpecial () |
Static Public Member Functions | |
static Common::Point | getMoveDelta (byte mask) |
Public Attributes | |
Common::Array< Graphics::ManagedSurface > | _tiles [3] |
uint | _mapId = (uint)-1 |
Common::Point | _mapPos |
uint | _mapOffset = 0 |
Map * | _currentMap = nullptr |
byte | _currentWalls = 0 |
byte | _currentState = 0 |
int | _colorOffset = 0 |
DirMask | _forwardMask = DIRMASK_N |
DirMask | _leftMask = DIRMASK_W |
DirMask | _rightMask = DIRMASK_E |
DirMask | _backwardsMask = DIRMASK_S |
int8 | _forwardOffset = 0 |
int8 | _leftOffset = 0 |
int8 | _rightOffset = 0 |
int8 | _backwardsOffset = 0 |
int | _loadId = 0 |
int | _loadArea = 0 |
int | _loadSection = 0 |
byte | _loadFlag = 0 |
Container for all the game maps
void MM::MM1::Maps::Maps::synchronize | ( | Common::Serializer & | s | ) |
Loads or saves map data
void MM::MM1::Maps::Maps::synchronizeCurrent | ( | Common::Serializer & | s | ) |
Loads or saves the current map info
void MM::MM1::Maps::Maps::select | ( | uint16 | id, |
byte | section | ||
) |
Selects a map
void MM::MM1::Maps::Maps::display | ( | uint16 | id, |
byte | section = 1 |
||
) |
Selects a map, and switches to in-game display
void MM::MM1::Maps::Maps::loadTown | ( | TownId | townId | ) |
Loads a town
|
inline |
Get a given map
void MM::MM1::Maps::Maps::turnLeft | ( | ) |
Turn left
void MM::MM1::Maps::Maps::turnRight | ( | ) |
Turn right
void MM::MM1::Maps::Maps::turnAround | ( | ) |
Turn around
void MM::MM1::Maps::Maps::step | ( | const Common::Point & | delta | ) |
Move a step
void MM::MM1::Maps::Maps::changeMap | ( | uint16 | id, |
byte | section | ||
) |
Called when a map is left to load a new one and trigger the 3d view to update
void MM::MM1::Maps::Maps::visitedTile | ( | ) |
Mark a tile as visited
void MM::MM1::Maps::Maps::clearSpecial | ( | ) |
Disables the special state of the current cell This is primiarily used for disabling cells that trigger combat after the first time
|
static |
Gets the moveement delta given a direction mask