ScummVM API documentation
Ultima::Ultima1::Maps::MapCity Class Reference

#include <map_city_castle.h>

Inheritance diagram for Ultima::Ultima1::Maps::MapCity:
Ultima::Ultima1::Maps::MapCityCastle Ultima::Ultima1::Maps::MapBase Ultima::Shared::Maps::MapBase

Public Member Functions

 MapCity (Ultima1Game *game, Ultima1Map *map)
 
 ~MapCity () override
 
void load (Shared::Maps::MapId mapId) override
 
void dropCoins (uint coins) override
 
void get () override
 
void talk () override
 
void unlock () override
 
- Public Member Functions inherited from Ultima::Ultima1::Maps::MapCityCastle
 MapCityCastle (Ultima1Game *game, Ultima1Map *map)
 
void getTileAt (const Point &pt, Shared::Maps::MapTile *tile, bool includePlayer=true) override
 
void clear () override
 
Point getViewportPosition (const Point &viewportSize) override
 
void cast () override
 
void drop () override
 
void inform () override
 
void steal () override
 
void attack (int direction, int effectId, uint maxDistance, uint amount, uint agility, const Common::String &hitWidget) override
 
bool isWenchNearby () const
 
- Public Member Functions inherited from Ultima::Ultima1::Maps::MapBase
 MapBase (Ultima1Game *game, Ultima1Map *map)
 
 ~MapBase () override
 
Shared::Maps::MapWidgetcreateWidget (const Common::String &name) override
 
virtual void enter ()
 
virtual void hyperjump ()
 
virtual void climb ()
 
virtual void open ()
 
virtual void view ()
 
virtual void disembark ()
 
virtual void attack (int direction, int effectId)
 
virtual void board ()
 
void castSpell (uint spell) override
 
- Public Member Functions inherited from Ultima::Shared::Maps::MapBase
 MapBase (Game *game, Map *)
 
virtual void synchronize (Common::Serializer &s)
 
void addWidget (MapWidget *widget)
 
void removeWidget (MapWidget *widget)
 
virtual void setTileAt (const Point &pt, uint tileId)
 
void resetViewport ()
 
virtual bool changeLevel (int delta)
 
virtual uint getLevel () const
 
virtual bool isMapWrapped () const
 
size_t width () const
 
size_t height () const
 
Point getPosition () const
 
void setPosition (const Point &pt)
 
Direction getDirection () const
 
void setDirection (Direction dir)
 
Point getDirectionDelta () const
 
virtual Point getDeltaPosition (const Point &delta)
 
MapId getMapId () const
 
uint getMapIndex () const
 
uint getMapStyle () const
 
virtual void shiftViewport (const Point &delta)
 
virtual void update ()
 

Additional Inherited Members

- Public Attributes inherited from Ultima::Ultima1::Maps::MapCityCastle
bool _guardsHostile
 
uint _tipCounter
 
- Public Attributes inherited from Ultima::Shared::Maps::MapBase
Point _size
 
Point _tilesPerOrigTile
 
Common::String _name
 
MapWidget_playerWidget
 
WidgetsArray _widgets
 
- Protected Member Functions inherited from Ultima::Ultima1::Maps::MapCityCastle
void loadWidgets ()
 
void loadTownCastleData ()
 
Widgets::MerchantgetStealMerchant ()
 
Widgets::PersongetTalkPerson ()
 
- Protected Member Functions inherited from Ultima::Shared::Maps::MapBase
void setDimensions (const Point &size)
 
void addInfoMsg (const Common::String &text, bool newLine=true, bool replaceLine=false)
 
- Protected Attributes inherited from Ultima::Ultima1::Maps::MapBase
Ultima1Game_game
 
- Protected Attributes inherited from Ultima::Shared::Maps::MapBase
MapId _mapId
 
uint _mapIndex
 
uint _mapStyle
 
ViewportPosition _viewportPos
 
Common::Array< MapCellsRow > _data
 

Detailed Description

City map

Constructor & Destructor Documentation

◆ MapCity()

Ultima::Ultima1::Maps::MapCity::MapCity ( Ultima1Game game,
Ultima1Map map 
)
inline

Constructor

◆ ~MapCity()

Ultima::Ultima1::Maps::MapCity::~MapCity ( )
inlineoverride

Destructor

Member Function Documentation

◆ load()

void Ultima::Ultima1::Maps::MapCity::load ( Shared::Maps::MapId  mapId)
overridevirtual

Load the map

Reimplemented from Ultima::Ultima1::Maps::MapCityCastle.

◆ dropCoins()

void Ultima::Ultima1::Maps::MapCity::dropCoins ( uint  coins)
overridevirtual

Handles dropping an amount of coins

Reimplemented from Ultima::Ultima1::Maps::MapBase.

◆ get()

void Ultima::Ultima1::Maps::MapCity::get ( )
overridevirtual

Do a get action

Reimplemented from Ultima::Ultima1::Maps::MapBase.

◆ talk()

void Ultima::Ultima1::Maps::MapCity::talk ( )
overridevirtual

Do a talk action

Reimplemented from Ultima::Ultima1::Maps::MapBase.

◆ unlock()

void Ultima::Ultima1::Maps::MapCity::unlock ( )
overridevirtual

Do an unlock action

Reimplemented from Ultima::Ultima1::Maps::MapBase.


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