CActionData Class Reference
interface for saving changable
data of an action More...
#include <caction.h>
Inheritance diagram for CActionData:
List of all
members.
Detailed Description
interface for saving changable data of an action
Since the "Id" of an action is the pointer itself, and this
pointer is used in every action set, we can't set the changeable
data of an action that easily, since it would change the action's
data everywhere in the program. If this isn't wanted (as usual), we
have to use action data objects. New action data objects can be
retrieved from any action class (if there is no changeable data for
an action the action will return a NULL pointer). This action data
object is now local, and not global any more and can therefore be
changed easily. If an action has changeable data, the action
pointer and a coresponding action data object determine the action.
This is used in many function-arguments. Normally, if the
action-data object is missing (= NULL) a new action data object is
retrieved from the action.
- At the momemt its used for saving the data of MultiStepActions
(duration, finished), and ContinousActions (saving the continuous
action value) all other classes return NULL when asking them for a
CActionData Object.
- See also:
- CAction
CMultiStepActionData
CActionList
Constructor & Destructor Documentation
|
CActionData::CActionData
|
( |
|
) |
|
|
| virtual
CActionData::~CActionData
|
( |
|
) |
[inline,
virtual] |
|
Member Function Documentation
| bool
CActionData::isChangeAble
|
( |
|
) |
|
|
| virtual void
CActionData::loadASCII
|
( |
FILE * |
stream |
) |
[pure
virtual] |
|
| virtual void
CActionData::loadBIN
|
( |
FILE * |
stream |
) |
[pure
virtual] |
|
| virtual void
CActionData::saveASCII
|
( |
FILE * |
stream |
) |
[pure
virtual] |
|
| virtual void
CActionData::saveBIN
|
( |
FILE * |
stream |
) |
[pure
virtual] |
|
| virtual void
CActionData::setData
|
( |
CActionData *
|
actionData |
) |
[pure
virtual] |
|
| void
CActionData::setIsChangeAble
|
( |
bool |
changeAble |
) |
|
|
Member Data Documentation
The documentation for this class was generated from the following
file:
|