ScummVM API documentation
Ultima::Ultima4::City Class Reference
Inheritance diagram for Ultima::Ultima4::City:
Ultima::Ultima4::Map Ultima::Ultima4::XMLMap

Public Member Functions

Common::String getName () override
 
PersonaddPerson (Person *p)
 
void addPeople ()
 
void removeAllPeople ()
 
PersonpersonAt (const Coords &coords)
 
- Public Member Functions inherited from Ultima::Ultima4::Map
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
 

Public Attributes

Common::String _name
 
Common::String _type
 
PersonList _persons
 
Common::Path _tlkFname
 
PersonRoleList _personRoles
 
Std::vector< Dialogue * > _extraDialogues
 
- 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]
 

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 }
 

Member Function Documentation

◆ getName()

Common::String Ultima::Ultima4::City::getName ( )
overridevirtual

Returns the name of the city

Reimplemented from Ultima::Ultima4::Map.

◆ addPerson()

Person* Ultima::Ultima4::City::addPerson ( Person p)

Adds a person object to the map

◆ addPeople()

void Ultima::Ultima4::City::addPeople ( )

Add people to the map

◆ removeAllPeople()

void Ultima::Ultima4::City::removeAllPeople ( )

Removes all people from the current map

◆ personAt()

Person* Ultima::Ultima4::City::personAt ( const Coords coords)

Returns the person object at the given (x,y,z) coords, if one exists. Otherwise, returns nullptr.


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