#include <action.h>
Public Member Functions | |
| Action (TreeItem *parent) | |
| ~Action () override | |
| Game * | getGame () |
| Maps::Map * | getMap () |
| 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 () |
| TreeItem * | getParent () const |
| Game * | getGame () |
| const Game * | getGame () const |
| Gfx::VisualItem * | getView () |
| TreeItem * | getNextSibling () const |
| TreeItem * | getPriorSibling () const |
| TreeItem * | getLastSibling () |
| TreeItem * | getFirstChild () const |
| TreeItem * | getLastChild () const |
| TreeItem * | scan (TreeItem *item) const |
| TreeItem * | findChildInstanceOf (const ClassDef &classDef) const |
| TreeItem * | findNextInstanceOf (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) |
| NamedItem * | findByName (const Common::String &name) |
Public Member Functions inherited from Ultima::Shared::BaseObject | |
| virtual ::Ultima::Shared::ClassDef | getType () const |
| bool | isInstanceOf (const ClassDef &classDef) const |
Protected Member Functions | |
| void | endOfTurn () |
Additional Inherited Members | |
Static Public Member Functions inherited from Ultima::Shared::BaseObject | |
| ::Ultima::Shared::ClassDef | type () |
Public Attributes inherited from Ultima::Shared::TreeItem | |
| CLASSDEF | |
Base class for implementing the various actions the player can do, such as moving, climbing, entering, etc.
| Ultima::Shared::Actions::Action::Action | ( | TreeItem * | parent | ) |
Constructor
|
inlineoverride |
Destructor
|
protected |
Signals the end of the turn
| Game* Ultima::Shared::Actions::Action::getGame | ( | ) |
Jumps up through the parents to find the root game
| Maps::Map* Ultima::Shared::Actions::Action::getMap | ( | ) |
Return the game's map
| void Ultima::Shared::Actions::Action::addInfoMsg | ( | const Common::String & | text, |
| bool | newLine = true, |
||
| bool | replaceLine = false |
||
| ) |
Adds a text string to the info area
| text | Text to add |
| newLine | Whether to apply a newline at the end |
| void Ultima::Shared::Actions::Action::playFX | ( | uint | effectId | ) |
Play a sound effect