ScummVM API documentation
Ultima::Ultima1::Widgets::DungeonItem Class Reference

#include <dungeon_item.h>

Inheritance diagram for Ultima::Ultima1::Widgets::DungeonItem:
Ultima::Ultima1::Widgets::DungeonWidget Ultima::Shared::Maps::DungeonWidget Ultima::Shared::Maps::MapWidget Ultima::Shared::MessageTarget Ultima::Shared::BaseObject Ultima::Ultima1::Widgets::DungeonChest Ultima::Ultima1::Widgets::DungeonCoffin

Public Member Functions

virtual bool open ()
 
- Public Member Functions inherited from Ultima::Ultima1::Widgets::DungeonWidget
 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
 

Protected Member Functions

 DungeonItem (Ultima1Game *game, Maps::MapBase *map, DungeonWidgetId widgetId, const Point &pt)
 
 DungeonItem (Ultima1Game *game, Maps::MapBase *map, DungeonWidgetId widgetId)
 
- Protected Member Functions inherited from Ultima::Ultima1::Widgets::DungeonWidget
Ultima1GamegetGame () const
 
Maps::MapBasegetMap () const
 
- Protected Member Functions inherited from Ultima::Shared::MessageTarget
virtual const Ultima::Shared::MSGMAPgetMessageMap () 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::Ultima1::Widgets::DungeonWidget
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 inherited from Ultima::Ultima1::Widgets::DungeonWidget
Common::String _name
 
- Public Attributes inherited from Ultima::Shared::Maps::MapWidget
Point _position
 
Direction _direction
 
Common::String _name
 
 CLASSDEF
 
- Public Attributes inherited from Ultima::Shared::MessageTarget
 CLASSDEF
 
- Static Protected Member Functions inherited from Ultima::Shared::MessageTarget
static const Ultima::Shared::MSGMAPgetThisMessageMap ()
 
- Protected Attributes inherited from Ultima::Ultima1::Widgets::DungeonWidget
DungeonWidgetId _widgetId
 
- Protected Attributes inherited from Ultima::Shared::Maps::MapWidget
Game_game
 
MapBase_map
 

Detailed Description

Encapsulated class for drawing widgets within dungeons

Constructor & Destructor Documentation

◆ DungeonItem() [1/2]

Ultima::Ultima1::Widgets::DungeonItem::DungeonItem ( Ultima1Game game,
Maps::MapBase map,
DungeonWidgetId  widgetId,
const Point pt 
)
protected

Constructor

◆ DungeonItem() [2/2]

Ultima::Ultima1::Widgets::DungeonItem::DungeonItem ( Ultima1Game game,
Maps::MapBase map,
DungeonWidgetId  widgetId 
)
protected

Constructor

Member Function Documentation

◆ open()

virtual bool Ultima::Ultima1::Widgets::DungeonItem::open ( )
inlinevirtual

Try to open/unlock the item

Returns
True if item was capable of being opened or unlocked

Reimplemented in Ultima::Ultima1::Widgets::DungeonCoffin, and Ultima::Ultima1::Widgets::DungeonChest.


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