CActionSet Class Reference
class maintaining all the
actions available for a certain object (normally a CActionObject like a controller)
More...
#include <caction.h>
List of all
members.
Detailed Description
class maintaining all the actions available for a certain object
(normally a CActionObject like a controller)
This class maintains a list of all actions which should be
useable for another object. It only saves the pointers of the
action Objects, so you can't save for example the duration of an
action, if you change the duration later (which is normally the
case), for that case use CActionList. The pointer of the
action is also used as a kind of "Id". According to the pointer the
function getIndex(...) returns the index of the action, so the
other objects can determine which action was chosen. /par
CActionSet also provides a function for gettÃng all
available actions in the current State from the action set.
- See also:
- CActionList
Constructor & Destructor Documentation
|
CActionSet::CActionSet
|
( |
|
) |
|
|
| virtual
CActionSet::~CActionSet
|
( |
|
) |
[virtual] |
|
Member Function Documentation
| |
add all actions from an action set to the action
set
|
| void
CActionSet::add
|
( |
CAction *
|
action |
) |
|
|
| |
add an action to the set.
|
| CAction* CActionSet::get
|
( |
unsigned int |
index |
) |
|
|
| |
returns the index of the index th action.
|
| |
get all available actions in the current State from the action
set.
|
| int
CActionSet::getIndex
|
( |
CAction *
|
action |
) |
|
|
| |
returns the index of the action.
|
| bool
CActionSet::isMember
|
( |
CAction *
|
action |
) |
|
|
The documentation for this class was generated from the following
file:
|