#include <combat_controller.h>
Public Member Functions | |
CreatureVector | getCreatures () |
PartyMemberVector | getPartyMembers () |
PartyMember * | partyMemberAt (Coords coords) |
Creature * | creatureAt (Coords coords) |
bool | isDungeonRoom () const |
bool | isAltarRoom () const |
bool | isContextual () const |
BaseVirtue | getAltarRoom () const |
void | setAltarRoom (BaseVirtue ar) |
void | setDungeonRoom (bool d) |
void | setContextual (bool c) |
Public Member Functions inherited from Ultima::Ultima4::Map | |
virtual Common::String | getName () |
Object * | objectAt (const Coords &coords) |
const Portal * | portalAt (const Coords &coords, int actionFlags) |
MapTile * | getTileFromData (const Coords &coords) |
MapTile * | tileAt (const Coords &coords, int withObjects) |
const Tile * | tileTypeAt (const Coords &coords, int withObjects) |
bool | isWorldMap () |
bool | isEnclosed (const Coords &party) |
Creature * | addCreature (const class Creature *m, Coords coords) |
Object * | addObject (MapTile tile, MapTile prevTile, Coords coords) |
Object * | addObject (Object *obj, Coords coords) |
void | removeObject (const class Object *rem, bool deleteObject=true) |
ObjectDeque::iterator | removeObject (ObjectDeque::iterator rem, bool deleteObject=true) |
void | clearObjects () |
Creature * | moveObjects (MapCoords avatar) |
void | resetObjectAnimations () |
int | getNumberOfCreatures () |
int | getValidMoves (MapCoords from, MapTile transport) |
bool | move (Object *obj, Direction d) |
void | alertGuards () |
MapCoords | getLabel (const Common::String &name) const |
bool | fillMonsterTable () |
MapTile | translateFromRawTileIndex (int c) const |
uint | translateToRawTileIndex (MapTile &tile) const |
Static Public Member Functions | |
static MapId | mapForTile (const Tile *ground, const Tile *transport, Object *obj) |
Public Attributes | |
Coords | creature_start [16] |
Coords | player_start [8] |
Public Attributes inherited from Ultima::Ultima4::Map | |
MapId | _id |
Common::Path | _fname |
Type | _type |
uint | _width |
uint | _height |
uint | _levels |
uint | _chunkWidth |
uint | _chunkHeight |
uint | _offset |
Source | _baseSource |
Common::List< Source > | _extraSources |
CompressedChunkList | _compressedChunks |
BorderBehavior | _borderBehavior |
PortalList | _portals |
AnnotationMgr * | _annotations |
int | _flags |
Music::Type | _music |
MapData | _data |
ObjectDeque | _objects |
Common::HashMap< Common::String, MapCoords > | _labels |
Tileset * | _tileSet |
TileMap * | _tileMap |
MapTile | _blank |
SaveGameMonsterRecord | _monsterTable [MONSTERTABLE_SIZE] |
Protected Attributes | |
bool | _dungeonRoom |
BaseVirtue | _altarRoom |
bool | _contextual |
Additional Inherited Members | |
Public Types inherited from Ultima::Ultima4::Map | |
enum | Type { WORLD, CITY, SHRINE, COMBAT, DUNGEON, XML } |
enum | BorderBehavior { BORDER_WRAP, BORDER_EXIT2PARENT, BORDER_FIXED } |
CombatMap class
CreatureVector Ultima::Ultima4::CombatMap::getCreatures | ( | ) |
Returns a vector containing all of the creatures on the map
PartyMemberVector Ultima::Ultima4::CombatMap::getPartyMembers | ( | ) |
Returns a vector containing all of the party members on the map
PartyMember* Ultima::Ultima4::CombatMap::partyMemberAt | ( | Coords | coords | ) |
Returns the party member at the given coords, if there is one, nullptr if otherwise.
Returns the creature at the given coords, if there is one, nullptr if otherwise.
|
static |
Returns a valid combat map given the provided information