|
FIFE
|
#include <action.h>
Inheritance diagram for FIFE::Action:
Collaboration diagram for FIFE::Action:Public Member Functions | |
| Action (const std::string &identifier) | |
| Constructor Actions are created by calling addAction from object, thus this method should really be called only by object or test code. More... | |
| virtual | ~Action () |
| Destructor. More... | |
| const std::string & | getId () |
| Get the identifier for this action. More... | |
| void | setDuration (uint32_t duration) |
| Sets the duration for this action. More... | |
| uint32_t | getDuration () |
| Gets the duration of this action. More... | |
| void | adoptVisual (IVisual *visual) |
| Sets visualization to be used. More... | |
| template<typename T > | |
| T * | getVisual () const |
| Gets used visualization. More... | |
Public Member Functions inherited from FIFE::FifeClass | |
| FifeClass () | |
| virtual | ~FifeClass () |
| fifeid_t | getFifeId () |
| Gets unique id of this instance inside the engine. More... | |
Private Attributes | |
| std::string | m_id |
| uint32_t | m_duration |
| IVisual * | m_visual |
| FIFE::Action::Action | ( | const std::string & | identifier | ) |
Constructor Actions are created by calling addAction from object, thus this method should really be called only by object or test code.
Definition at line 36 of file action.cpp.
|
virtual |
|
inline |
Sets visualization to be used.
Transfers ownership.
Definition at line 69 of file action.h.
References m_visual.
Referenced by FIFE::ActionVisual::create().
Here is the caller graph for this function:
|
inline |
Gets the duration of this action.
Definition at line 65 of file action.h.
References m_duration.
Referenced by FIFE::Instance::update().
Here is the caller graph for this function:
|
inline |
|
inline |
Gets used visualization.
Definition at line 73 of file action.h.
References m_visual.
Referenced by FIFE::ActionVisual::create(), FIFE::Instance::getActionVisual(), and FIFE::ObjectLoader::load().
Here is the caller graph for this function:
|
inline |
Sets the duration for this action.
Definition at line 61 of file action.h.
References m_duration.
Referenced by FIFE::ObjectLoader::load().
Here is the caller graph for this function:
|
private |
Definition at line 80 of file action.h.
Referenced by getDuration(), and setDuration().
|
private |
|
private |
Definition at line 82 of file action.h.
Referenced by adoptVisual(), getVisual(), and ~Action().