Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

CSActionData Class Reference

#include <CSAction.h>


Detailed Description

data classes are used for loading a loadable class first the data is loaded via xml into this "DATA"-class from this data - the actual action is created the data can be reused to create another instance of an action class - though probably not needed...

Definition at line 27 of file CSAction.h.

Public Member Functions

 CSActionData ()
 ~CSActionData ()

Data Fields

char * id
 id of action, unique

int type
char * nextAction
 (default) nextAction (id)

bool isBreakable
 is this action breakable in the midth of phases

unsigned int repeatable
 status of repeatable, see animation

unsigned int envoker
 from what is this action envoked

unsigned int sizePhases
 how many phases?

unsigned int * phases
 arrayPointer # sizePhases

StringVectoranimationNames
 animations filenames (xml)


Constructor & Destructor Documentation

CSActionData::CSActionData  )  [inline]
 

Definition at line 41 of file CSAction.h.

References animationNames, envoker, isBreakable, nextAction, phases, repeatable, and sizePhases.

00042         {
00043             id = 0;
00044             nextAction = 0;
00045             envoker = 0;
00046             isBreakable = true;
00047             repeatable = 0;
00048             animationNames = 0;
00049             sizePhases = 0;
00050             phases = 0;
00051         }

CSActionData::~CSActionData  )  [inline]
 

Definition at line 53 of file CSAction.h.

References animationNames, nextAction, and phases.

00054         {
00055             if (id != 0)
00056             {
00057                 free (id);
00058                 id = 0;
00059             }
00060             if (nextAction != 0)
00061             {
00062                 free (nextAction);
00063                 nextAction = 0;
00064             }
00065             if (phases != 0)
00066             {
00067                 delete []phases;
00068                 phases = 0;
00069             }
00070             if (animationNames != 0)
00071             {
00072                 for (StringVector::iterator iter = animationNames->begin(); iter != animationNames->end(); iter++)
00073                 {
00074                     delete *iter;
00075                 }
00076                 delete animationNames;
00077                 animationNames = 0;
00078             }   
00079         }


Field Documentation

char* CSActionData::id
 

id of action, unique

Definition at line 30 of file CSAction.h.

int CSActionData::type
 

Definition at line 31 of file CSAction.h.

char* CSActionData::nextAction
 

(default) nextAction (id)

Definition at line 32 of file CSAction.h.

Referenced by CSActionData(), and ~CSActionData().

bool CSActionData::isBreakable
 

is this action breakable in the midth of phases

Definition at line 33 of file CSAction.h.

Referenced by CSActionData().

unsigned int CSActionData::repeatable
 

status of repeatable, see animation

Definition at line 34 of file CSAction.h.

Referenced by CSActionData().

unsigned int CSActionData::envoker
 

from what is this action envoked

Definition at line 36 of file CSAction.h.

Referenced by CSActionData().

unsigned int CSActionData::sizePhases
 

how many phases?

Definition at line 37 of file CSAction.h.

Referenced by CSActionData().

unsigned int* CSActionData::phases
 

arrayPointer # sizePhases

Definition at line 38 of file CSAction.h.

Referenced by CSActionData(), and ~CSActionData().

StringVector* CSActionData::animationNames
 

animations filenames (xml)

Definition at line 39 of file CSAction.h.

Referenced by CSActionData(), and ~CSActionData().


Generated on Wed Jul 14 00:43:46 2004 for CSLib by doxygen 1.3.6