#include <urban_widget.h>
Public Member Functions | |
| UrbanWidget (Shared::Game *game, Shared::Maps::MapBase *map, uint tileNum) | |
| ~UrbanWidget () override | |
| uint | getTileNum () const override |
| CanMove | canMoveTo (const Point &destPos) override |
| void | synchronize (Common::Serializer &s) override |
Public Member Functions inherited from Ultima::Shared::Maps::MapWidget | |
| MapWidget (Game *game, MapBase *map) | |
| MapWidget (Game *game, MapBase *map, const Point &pt, Direction dir=DIR_NONE) | |
| MapWidget (Game *game, MapBase *map, const Common::String &name, const Point &pt, Direction dir=DIR_NONE) | |
| ~MapWidget () override | |
| virtual const char * | getClassName () const |
| void | addInfoMsg (const Common::String &text, bool newLine=true, bool replaceLine=false) |
| virtual bool | isBlocking () const |
| virtual void | update (bool isPreUpdate) |
| virtual void | moveTo (const Point &destPos, Direction dir=DIR_NONE) |
Public Member Functions inherited from Ultima::Shared::BaseObject | |
| virtual ::Ultima::Shared::ClassDef | getType () const |
| bool | isInstanceOf (const ClassDef &classDef) const |
Protected Member Functions | |
| bool | moveBy (const Point &delta) |
Protected Attributes | |
| CLASSDEF | |
Protected Attributes inherited from Ultima::Shared::Maps::MapWidget | |
| Game * | _game |
| MapBase * | _map |
Additional Inherited Members | |
Public Types inherited from Ultima::Shared::Maps::MapWidget | |
| enum | CanMove { UNSET = 0, YES = 1, NO = 2 } |
Static Public Member Functions inherited from Ultima::Shared::Maps::MapWidget | |
| static Direction | directionFromKey (Common::KeyCode keycode) |
Static Public Member Functions inherited from Ultima::Shared::BaseObject | |
| ::Ultima::Shared::ClassDef | type () |
Public Attributes inherited from Ultima::Shared::Maps::MapWidget | |
| Point | _position |
| Direction | _direction |
| Common::String | _name |
| CLASSDEF | |
Base class for widgets in urban maps
|
inline |
Constructor
|
inlineoverride |
Destructor
|
protected |
Moves by a given delta if the destination is available
| delta | Delta to move character by |
|
inlineoverridevirtual |
Get the tile number for the person
Reimplemented from Ultima::Shared::Maps::MapWidget.
|
overridevirtual |
Returns true if the given widget can move to a given position on the map
Reimplemented from Ultima::Shared::Maps::MapWidget.
|
overridevirtual |
Handles loading and saving games
Reimplemented from Ultima::Shared::Maps::MapWidget.