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

#include <map_city_castle.h>

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

Public Member Functions

 MapCastle (Ultima1Game *game, Ultima1Map *map)
 
void load (Shared::Maps::MapId mapId) override
 
void synchronize (Common::Serializer &s) override
 
void dropCoins (uint coins) override
 
void get () override
 
void talk () override
 
void unlock () override
 
bool isLordBritishCastle () const
 
- 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 *)
 
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 ()
 

Public Attributes

uint _castleKey
 
int _getCounter
 
bool _freeingPrincess
 
- 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
 

Additional Inherited Members

- 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

Castle map

Constructor & Destructor Documentation

◆ MapCastle()

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

Constructor

Member Function Documentation

◆ load()

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

Load the map

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

◆ synchronize()

void Ultima::Ultima1::Maps::MapCastle::synchronize ( Common::Serializer s)
overridevirtual

Handles loading and saving the map's data

Reimplemented from Ultima::Shared::Maps::MapBase.

◆ dropCoins()

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

Handles dropping an amount of coins

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

◆ get()

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

Do a get action

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

◆ talk()

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

Do a talk action

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

◆ unlock()

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

Do an unlock action

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

◆ isLordBritishCastle()

bool Ultima::Ultima1::Maps::MapCastle::isLordBritishCastle ( ) const

Returns true if Lord British's castle is the currently active map


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