ScummVM API documentation
MM::MM1::Maps::Maps Class Reference

#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)
 
MapgetMap (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
 

Detailed Description

Container for all the game maps

Member Function Documentation

◆ synchronize()

void MM::MM1::Maps::Maps::synchronize ( Common::Serializer s)

Loads or saves map data

◆ synchronizeCurrent()

void MM::MM1::Maps::Maps::synchronizeCurrent ( Common::Serializer s)

Loads or saves the current map info

◆ select()

void MM::MM1::Maps::Maps::select ( uint16  id,
byte  section 
)

Selects a map

◆ display()

void MM::MM1::Maps::Maps::display ( uint16  id,
byte  section = 1 
)

Selects a map, and switches to in-game display

◆ loadTown()

void MM::MM1::Maps::Maps::loadTown ( TownId  townId)

Loads a town

◆ getMap()

Map* MM::MM1::Maps::Maps::getMap ( uint  mapId) const
inline

Get a given map

◆ turnLeft()

void MM::MM1::Maps::Maps::turnLeft ( )

Turn left

◆ turnRight()

void MM::MM1::Maps::Maps::turnRight ( )

Turn right

◆ turnAround()

void MM::MM1::Maps::Maps::turnAround ( )

Turn around

◆ step()

void MM::MM1::Maps::Maps::step ( const Common::Point delta)

Move a step

◆ changeMap()

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

◆ visitedTile()

void MM::MM1::Maps::Maps::visitedTile ( )

Mark a tile as visited

◆ clearSpecial()

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

◆ getMoveDelta()

static Common::Point MM::MM1::Maps::Maps::getMoveDelta ( byte  mask)
static

Gets the moveement delta given a direction mask


The documentation for this class was generated from the following file: