ScummVM API documentation
Ultima::Ultima4::CombatMap Class Reference

#include <combat_controller.h>

Inheritance diagram for Ultima::Ultima4::CombatMap:
Ultima::Ultima4::Map

Public Member Functions

CreatureVector getCreatures ()
 
PartyMemberVector getPartyMembers ()
 
PartyMemberpartyMemberAt (Coords coords)
 
CreaturecreatureAt (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 ()
 
ObjectobjectAt (const Coords &coords)
 
const PortalportalAt (const Coords &coords, int actionFlags)
 
MapTilegetTileFromData (const Coords &coords)
 
MapTiletileAt (const Coords &coords, int withObjects)
 
const TiletileTypeAt (const Coords &coords, int withObjects)
 
bool isWorldMap ()
 
bool isEnclosed (const Coords &party)
 
CreatureaddCreature (const class Creature *m, Coords coords)
 
ObjectaddObject (MapTile tile, MapTile prevTile, Coords coords)
 
ObjectaddObject (Object *obj, Coords coords)
 
void removeObject (const class Object *rem, bool deleteObject=true)
 
ObjectDeque::iterator removeObject (ObjectDeque::iterator rem, bool deleteObject=true)
 
void clearObjects ()
 
CreaturemoveObjects (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 }
 

Detailed Description

CombatMap class

Member Function Documentation

◆ getCreatures()

CreatureVector Ultima::Ultima4::CombatMap::getCreatures ( )

Returns a vector containing all of the creatures on the map

◆ getPartyMembers()

PartyMemberVector Ultima::Ultima4::CombatMap::getPartyMembers ( )

Returns a vector containing all of the party members on the map

◆ partyMemberAt()

PartyMember* Ultima::Ultima4::CombatMap::partyMemberAt ( Coords  coords)

Returns the party member at the given coords, if there is one, nullptr if otherwise.

◆ creatureAt()

Creature* Ultima::Ultima4::CombatMap::creatureAt ( Coords  coords)

Returns the creature at the given coords, if there is one, nullptr if otherwise.

◆ mapForTile()

static MapId Ultima::Ultima4::CombatMap::mapForTile ( const Tile ground,
const Tile transport,
Object obj 
)
static

Returns a valid combat map given the provided information


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