#include <map_base.h>
Public Member Functions | |
MapBase (Ultima1Game *game, Ultima1Map *map) | |
~MapBase () override | |
void | getTileAt (const Point &pt, Shared::Maps::MapTile *tile, bool includePlayer=true) override |
Shared::Maps::MapWidget * | createWidget (const Common::String &name) override |
virtual void | drop () |
virtual void | enter () |
virtual void | get () |
virtual void | hyperjump () |
virtual void | inform () |
virtual void | climb () |
virtual void | open () |
virtual void | steal () |
virtual void | talk () |
virtual void | unlock () |
virtual void | view () |
virtual void | disembark () |
virtual void | attack (int direction, int effectId) |
virtual void | attack (int direction, int effectId, uint maxDistance, uint amount, uint agility, const Common::String &hitWidget)=0 |
virtual void | board () |
virtual void | cast () |
void | castSpell (uint spell) override |
virtual void | dropCoins (uint coins) |
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 | clear () |
virtual void | setTileAt (const Point &pt, uint tileId) |
void | resetViewport () |
virtual Point | getViewportPosition (const Point &viewportSize) |
virtual void | load (MapId mapId) |
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 () |
Protected Attributes | |
Ultima1Game * | _game |
Protected Attributes inherited from Ultima::Shared::Maps::MapBase | |
MapId | _mapId |
uint | _mapIndex |
uint | _mapStyle |
ViewportPosition | _viewportPos |
Common::Array< MapCellsRow > | _data |
Additional Inherited Members | |
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::Shared::Maps::MapBase | |
void | setDimensions (const Point &size) |
void | addInfoMsg (const Common::String &text, bool newLine=true, bool replaceLine=false) |
Intermediate base class for Ultima 1 maps
Ultima::Ultima1::Maps::MapBase::MapBase | ( | Ultima1Game * | game, |
Ultima1Map * | map | ||
) |
Constructor
|
inlineoverridevirtual |
Destructor
Reimplemented from Ultima::Shared::Maps::MapBase.
|
overridevirtual |
Gets a tile at a given position
Reimplemented from Ultima::Shared::Maps::MapBase.
Reimplemented in Ultima::Ultima1::Maps::MapDungeon, and Ultima::Ultima1::Maps::MapCityCastle.
|
overridevirtual |
Instantiates a widget type by name
Implements Ultima::Shared::Maps::MapBase.
|
virtual |
Perform an attack
Reimplemented in Ultima::Ultima1::Maps::MapDungeon.
|
pure virtual |
Perform an attack in a direction
direction | Direction |
effectId | Sound effect to play |
maxDistance | Maximum distance in the given direction |
amount | Damage amount |
agility | Agility threshold |
widgetNa |
Implemented in Ultima::Ultima1::Maps::MapDungeon, Ultima::Ultima1::Maps::MapCityCastle, and Ultima::Ultima1::Maps::MapOverworld.
|
virtual |
Board a transport
Reimplemented in Ultima::Ultima1::Maps::MapOverworld.
|
virtual |
Cast a spell
Reimplemented in Ultima::Ultima1::Maps::MapCityCastle.
|
overridevirtual |
Cast a specific spell
Implements Ultima::Shared::Maps::MapBase.
Reimplemented in Ultima::Ultima1::Maps::MapDungeon.
|
inlinevirtual |
Handles dropping an amount of coins
Reimplemented in Ultima::Ultima1::Maps::MapCastle, and Ultima::Ultima1::Maps::MapCity.