ScummVM API documentation
Ultima::Ultima1::Actions::Action Class Reference
Inheritance diagram for Ultima::Ultima1::Actions::Action:
Ultima::Shared::Actions::Action Ultima::Shared::TreeItem Ultima::Shared::MessageTarget Ultima::Shared::BaseObject Ultima::Ultima1::Actions::AttackFire Ultima::Ultima1::Actions::Cast Ultima::Ultima1::Actions::Move Ultima::Ultima1::Actions::Quit Ultima::Ultima1::Actions::Ready Ultima::Ultima1::Actions::Stats Ultima::Ultima1::Actions::Attack Ultima::Ultima1::Actions::Fire

Public Member Functions

 Action (TreeItem *parent)
 
 ~Action () override
 
Ultima1GamegetGame ()
 
Maps::Ultima1MapgetMap ()
 
GameResourcesgetRes ()
 
- Public Member Functions inherited from Ultima::Shared::Actions::Action
 Action (TreeItem *parent)
 
 ~Action () override
 
GamegetGame ()
 
Maps::MapgetMap ()
 
void addInfoMsg (const Common::String &text, bool newLine=true, bool replaceLine=false)
 
void playFX (uint effectId)
 
- Public Member Functions inherited from Ultima::Shared::TreeItem
virtual const Common::String getName () const
 
virtual bool isEquals (const Common::String &name, int maxLen=0) const
 
virtual int compareTo (const Common::String &name, int maxLen=0) const
 
virtual void viewChange ()
 
TreeItemgetParent () const
 
GamegetGame ()
 
const GamegetGame () const
 
Gfx::VisualItemgetView ()
 
TreeItemgetNextSibling () const
 
TreeItemgetPriorSibling () const
 
TreeItemgetLastSibling ()
 
TreeItemgetFirstChild () const
 
TreeItemgetLastChild () const
 
TreeItemscan (TreeItem *item) const
 
TreeItemfindChildInstanceOf (const ClassDef &classDef) const
 
TreeItemfindNextInstanceOf (const ClassDef &classDef, TreeItem *startItem) const
 
void addUnder (TreeItem *newParent)
 
void addChild (TreeItem *child)
 
void setParent (TreeItem *newParent)
 
void addSibling (TreeItem *item)
 
void moveUnder (TreeItem *newParent)
 
void destroyAll ()
 
int destroyChildren ()
 
void detach ()
 
void attach (TreeItem *item)
 
NamedItemfindByName (const Common::String &name)
 
- Public Member Functions inherited from Ultima::Shared::BaseObject
virtual ::Ultima::Shared::ClassDef getType () const
 
bool isInstanceOf (const ClassDef &classDef) const
 

Additional Inherited Members

- Static Public Member Functions inherited from Ultima::Shared::BaseObject
::Ultima::Shared::ClassDef type ()
 
- Public Attributes inherited from Ultima::Shared::TreeItem
 CLASSDEF
 
- Public Attributes inherited from Ultima::Shared::MessageTarget
 CLASSDEF
 
- Protected Member Functions inherited from Ultima::Shared::Actions::Action
void endOfTurn ()
 
- 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 ()
 

Constructor & Destructor Documentation

◆ Action()

Ultima::Ultima1::Actions::Action::Action ( TreeItem *  parent)
inline

Constructor

◆ ~Action()

Ultima::Ultima1::Actions::Action::~Action ( )
inlineoverride

Destructor

Member Function Documentation

◆ getGame()

Ultima1Game* Ultima::Ultima1::Actions::Action::getGame ( )

Jumps up through the parents to find the root game

◆ getMap()

Maps::Ultima1Map* Ultima::Ultima1::Actions::Action::getMap ( )

Return the game's map

◆ getRes()

GameResources* Ultima::Ultima1::Actions::Action::getRes ( )

Gets the data resources for the game


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