#include <dungeon_widget.h>
Public Member Functions | |
DungeonWidget (Ultima1Game *game, Maps::MapBase *map, DungeonWidgetId widgetId, const Point &pt) | |
DungeonWidget (Ultima1Game *game, Maps::MapBase *map) | |
void | draw (Shared::DungeonSurface &s, uint distance) override |
Public Member Functions inherited from Ultima::Shared::Maps::DungeonWidget | |
DungeonWidget (Game *game, Maps::MapBase *map) | |
DungeonWidget (Game *game, Maps::MapBase *map, const Point &pt, Direction dir=DIR_NONE) | |
DungeonWidget (Game *game, Maps::MapBase *map, const Common::String &name, const Point &pt, Direction dir=DIR_NONE) | |
~DungeonWidget () 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 |
virtual void | synchronize (Common::Serializer &s) |
void | addInfoMsg (const Common::String &text, bool newLine=true, bool replaceLine=false) |
virtual uint | getTileNum () const |
virtual bool | isBlocking () const |
virtual void | update (bool isPreUpdate) |
virtual CanMove | canMoveTo (const Point &destPos) |
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 |
Static Public Member Functions | |
static void | drawWidget (Graphics::ManagedSurface &s, DungeonWidgetId widgetId, uint distance, byte color) |
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 | |
Common::String | _name |
Public Attributes inherited from Ultima::Shared::Maps::MapWidget | |
Point | _position |
Direction | _direction |
Common::String | _name |
CLASSDEF | |
Protected Member Functions | |
Ultima1Game * | getGame () const |
Maps::MapBase * | getMap () const |
Protected Attributes | |
DungeonWidgetId | _widgetId |
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 } |
Encapsulated class for drawing widgets within dungeons
Ultima::Ultima1::Widgets::DungeonWidget::DungeonWidget | ( | Ultima1Game * | game, |
Maps::MapBase * | map, | ||
DungeonWidgetId | widgetId, | ||
const Point & | pt | ||
) |
Constructor
Ultima::Ultima1::Widgets::DungeonWidget::DungeonWidget | ( | Ultima1Game * | game, |
Maps::MapBase * | map | ||
) |
Constructor
|
protected |
Gets the Ultima 1 game
|
protected |
Gets the Ultima 1 map
|
static |
Draws a dungeon widget onto the passed surface
|
overridevirtual |
Handles drawing the item
Implements Ultima::Shared::Maps::DungeonWidget.