ScummVM API documentation
Ultima::Shared::DungeonWidget Class Referenceabstract

#include <widgets.h>

Inheritance diagram for Ultima::Shared::DungeonWidget:
Ultima::Shared::MapWidget

Public Member Functions

 DungeonWidget (Game *game, Map::MapBase *map)
 
 DungeonWidget (Game *game, Map::MapBase *map, const Point &pt, Direction dir=DIR_NONE)
 
 DungeonWidget (Game *game, Map::MapBase *map, const Common::String &name, const Point &pt, Direction dir=DIR_NONE)
 
 ~DungeonWidget () override
 
virtual void draw (DungeonSurface &s, uint distance)=0
 
- Public Member Functions inherited from Ultima::Shared::MapWidget
 MapWidget (Game *game, Map::MapBase *map)
 
 MapWidget (Game *game, Map::MapBase *map, const Point &pt, Direction dir=DIR_NONE)
 
 MapWidget (Game *game, Map::MapBase *map, const Common::String &name, const Point &pt, Direction dir=DIR_NONE)
 
virtual ~MapWidget ()
 
virtual const char * getClassName () const
 
virtual void synchronize (Common::Serializer &s)
 
void addInfoMsg (const Common::String &text, bool newLine=true)
 
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)
 

Additional Inherited Members

- Public Types inherited from Ultima::Shared::MapWidget
enum  CanMove { UNSET = 0, YES = 1, NO = 2 }
 
- Public Attributes inherited from Ultima::Shared::MapWidget
Point _position
 
Direction _direction
 
Common::String _name
 
- Protected Attributes inherited from Ultima::Shared::MapWidget
Game_game
 
Map::MapBase_map
 

Detailed Description

Base class for things that appear within the dungeons

Constructor & Destructor Documentation

◆ DungeonWidget()

Ultima::Shared::DungeonWidget::DungeonWidget ( Game game,
Map::MapBase map 
)
inline

Constructor

◆ ~DungeonWidget()

Ultima::Shared::DungeonWidget::~DungeonWidget ( )
inlineoverride

Destructor

Member Function Documentation

◆ draw()

virtual void Ultima::Shared::DungeonWidget::draw ( DungeonSurface s,
uint  distance 
)
pure virtual

Draws an item


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