ScummVM API documentation
Ultima::Ultima1::Widgets::DungeonPlayer Class Reference
Inheritance diagram for Ultima::Ultima1::Widgets::DungeonPlayer:
Ultima::Shared::Maps::DungeonWidget Ultima::Shared::Maps::MapWidget Ultima::Shared::MessageTarget Ultima::Shared::BaseObject

Public Member Functions

 DungeonPlayer (Shared::Game *game, Shared::Maps::MapBase *map)
 
 DungeonPlayer (Shared::Game *game, Shared::Maps::MapBase *map, const Point &pt, Shared::Maps::Direction dir=Shared::Maps::DIR_NONE)
 
 DungeonPlayer (Shared::Game *game, Shared::Maps::MapBase *map, const Common::String &name, const Point &pt, Shared::Maps::Direction dir=Shared::Maps::DIR_NONE)
 
 ~DungeonPlayer () override
 
void draw (Shared::DungeonSurface &s, uint distance) override
 
CanMove canMoveTo (const Point &destPos) 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 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
 

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
 
- Public Attributes inherited from Ultima::Shared::MessageTarget
 CLASSDEF
 
- Protected Member Functions inherited from Ultima::Shared::MessageTarget
virtual const Ultima::Shared::MSGMAPgetMessageMap () const
 
- Static Protected Member Functions inherited from Ultima::Shared::MessageTarget
static const Ultima::Shared::MSGMAPgetThisMessageMap ()
 
- Protected Attributes inherited from Ultima::Shared::Maps::MapWidget
Game_game
 
MapBase_map
 

Constructor & Destructor Documentation

◆ DungeonPlayer()

Ultima::Ultima1::Widgets::DungeonPlayer::DungeonPlayer ( Shared::Game game,
Shared::Maps::MapBase map 
)
inline

Constructor

◆ ~DungeonPlayer()

Ultima::Ultima1::Widgets::DungeonPlayer::~DungeonPlayer ( )
inlineoverride

Destructor

Member Function Documentation

◆ draw()

void Ultima::Ultima1::Widgets::DungeonPlayer::draw ( Shared::DungeonSurface s,
uint  distance 
)
inlineoverridevirtual

The player's viewpoint has no intrinsic drawing

Implements Ultima::Shared::Maps::DungeonWidget.

◆ canMoveTo()

CanMove Ultima::Ultima1::Widgets::DungeonPlayer::canMoveTo ( const Point destPos)
overridevirtual

Returns true if the given widget can move to a given position on the map

Reimplemented from Ultima::Shared::Maps::MapWidget.


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