#include <overworld_widget.h>
Public Member Functions | |
OverworldWidget (Shared::Game *game, Shared::Maps::MapBase *map, uint tileNum, const Point &pt, Shared::Maps::Direction dir=Shared::Maps::DIR_NONE) | |
OverworldWidget (Shared::Game *game, Shared::Maps::MapBase *map) | |
uint | getTileNum () const override |
void | synchronize (Common::Serializer &s) override |
CanMove | canMoveTo (const Point &destPos) override |
![]() | |
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) |
![]() | |
virtual ::Ultima::Shared::ClassDef | getType () const |
bool | isInstanceOf (const ClassDef &classDef) const |
Public Attributes | |
Common::String | _name |
uint | _tileNum |
![]() | |
Point | _position |
Direction | _direction |
Common::String | _name |
CLASSDEF | |
Protected Member Functions | |
Ultima1Game * | getGame () const |
Maps::MapBase * | getMap () const |
Additional Inherited Members | |
![]() | |
enum | CanMove { UNSET = 0, YES = 1, NO = 2 } |
![]() | |
static Direction | directionFromKey (Common::KeyCode keycode) |
![]() | |
::Ultima::Shared::ClassDef | type () |
![]() | |
Game * | _game |
MapBase * | _map |
Encapsulated class for drawing widgets within dungeons
|
inline |
Constructor
|
inline |
Constructor
|
protected |
Gets the Ultima 1 game
|
protected |
Gets the Ultima 1 map
|
inlineoverridevirtual |
Get the tile number for the person
Reimplemented from Ultima::Shared::Maps::MapWidget.
Reimplemented in Ultima::Ultima1::Widgets::TimeMachine, Ultima::Ultima1::Widgets::Shuttle, Ultima::Ultima1::Widgets::Aircar, Ultima::Ultima1::Widgets::Frigate, Ultima::Ultima1::Widgets::Raft, Ultima::Ultima1::Widgets::Cart, Ultima::Ultima1::Widgets::Horse, and Ultima::Ultima1::Widgets::TransportOnFoot.
|
overridevirtual |
Handles loading and saving games
Reimplemented from Ultima::Shared::Maps::MapWidget.
Reimplemented in Ultima::Ultima1::Widgets::Shuttle.
|
overridevirtual |
Returns true if the given widget can move to a given position on the map
Reimplemented from Ultima::Shared::Maps::MapWidget.