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

StateData Class Reference

#include <CSSprite.h>


Public Member Functions

 StateData ()
 ~StateData ()

Data Fields

StringVector actionNames
 filenames (xml) of all action belonging to sprite

char * defaultActionName
 default action (id)

int stateId


Constructor & Destructor Documentation

StateData::StateData  )  [inline]
 

Definition at line 36 of file CSSprite.h.

References defaultActionName, and stateId.

00037         {
00038             defaultActionName = 0;
00039             stateId = 0;
00040         }

StateData::~StateData  )  [inline]
 

Definition at line 42 of file CSSprite.h.

References actionNames, defaultActionName, and stateId.

00043         {
00044             for (StringVector::iterator iter = actionNames.begin(); iter != actionNames.end(); iter++)
00045             {
00046                 delete *iter;
00047             }
00048             actionNames.clear();
00049 
00050             if (defaultActionName != 0)
00051             {
00052                 free(defaultActionName);
00053                 defaultActionName = 0;
00054             }
00055             stateId = 0;
00056         }


Field Documentation

StringVector StateData::actionNames
 

filenames (xml) of all action belonging to sprite

Definition at line 32 of file CSSprite.h.

Referenced by ~StateData().

char* StateData::defaultActionName
 

default action (id)

Definition at line 33 of file CSSprite.h.

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

int StateData::stateId
 

Definition at line 34 of file CSSprite.h.

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


Generated on Wed Jul 14 00:45:33 2004 for CSLib by doxygen 1.3.6