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

CSSpriteData Class Reference

#include <CSSprite.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 sprite is created the data can be reused to create another instance of an sprite class - though probably not needed...

Definition at line 64 of file CSSprite.h.

Public Member Functions

 CSSpriteData ()
 ~CSSpriteData ()

Data Fields

char * id
 id of sprite (unique)

StateDatas stateDatas
int layer_position
 sprite lies above layer (and under each higher layer)

int type
int defaultBundle
int subtype
int y_position


Constructor & Destructor Documentation

CSSpriteData::CSSpriteData  )  [inline]
 

Definition at line 77 of file CSSprite.h.

References defaultBundle, layer_position, subtype, and y_position.

00078         {
00079             type = 0;
00080             subtype = 0;
00081             defaultBundle = 0;
00082             id = 0;
00083             layer_position = 0;
00084             y_position = 0;
00085         }

CSSpriteData::~CSSpriteData  )  [inline]
 

Definition at line 87 of file CSSprite.h.

References stateDatas.

00088         {
00089             if (id != 0)
00090             {
00091                 free (id);
00092                 id = 0;
00093             }
00094             for (StateDatas::iterator iter = stateDatas.begin(); iter != stateDatas.end(); iter++)
00095             {
00096                 delete *iter;
00097             }
00098             stateDatas.clear();
00099         }


Field Documentation

char* CSSpriteData::id
 

id of sprite (unique)

Definition at line 67 of file CSSprite.h.

StateDatas CSSpriteData::stateDatas
 

Definition at line 68 of file CSSprite.h.

Referenced by ~CSSpriteData().

int CSSpriteData::layer_position
 

sprite lies above layer (and under each higher layer)

Definition at line 69 of file CSSprite.h.

Referenced by CSSpriteData().

int CSSpriteData::type
 

Definition at line 70 of file CSSprite.h.

int CSSpriteData::defaultBundle
 

Definition at line 71 of file CSSprite.h.

Referenced by CSSpriteData().

int CSSpriteData::subtype
 

Definition at line 72 of file CSSprite.h.

Referenced by CSSpriteData().

int CSSpriteData::y_position
 

within that layer a sprite can have a y position < so that one sprite can be above another within one layer < TODO: right now the squence of the sprite < is used, this parameter is still ignored!

Definition at line 73 of file CSSprite.h.

Referenced by CSSpriteData().


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