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

CSAnimationData Class Reference

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

Definition at line 57 of file CSAnimation.h.

Public Member Functions

 CSAnimationData ()
 ~CSAnimationData ()

Data Fields

char * id
 defining picture filename!

bool isBreakable
unsigned int repeatable
 see above definition

unsigned int sizePhases
 how many phases?

unsigned int * phases
 arrayPointer # sizePhases

CSAnimationPicturespictures
 above data for animation pictures


Constructor & Destructor Documentation

CSAnimationData::CSAnimationData  )  [inline]
 

Definition at line 68 of file CSAnimation.h.

References pictures.

00069         {
00070             phases = 0;
00071             id = 0;
00072             pictures = 0;
00073         }

CSAnimationData::~CSAnimationData  )  [inline]
 

Definition at line 75 of file CSAnimation.h.

References pictures.

00076         {
00077             if (id != 0)
00078             {
00079                 free (id);
00080                 id = 0;
00081             }
00082             if (pictures != 0)
00083             {
00084                 CSAnimationPictures::iterator iter = pictures->begin();
00085 
00086                 while (iter != pictures->end())
00087                 {
00088                     CSAnimationPicture *pic = *iter;
00089                     delete pic;
00090                     iter++;
00091                 }
00092                 delete pictures;
00093                 pictures = 0;
00094             }   
00095             if (phases != 0)
00096             {
00097                 delete []phases;
00098                 phases = 0;
00099             }
00100         }


Field Documentation

char* CSAnimationData::id
 

defining picture filename!

Definition at line 60 of file CSAnimation.h.

bool CSAnimationData::isBreakable
 

cann animation be stopped while < in between

Definition at line 61 of file CSAnimation.h.

unsigned int CSAnimationData::repeatable
 

see above definition

Definition at line 63 of file CSAnimation.h.

unsigned int CSAnimationData::sizePhases
 

how many phases?

Definition at line 64 of file CSAnimation.h.

unsigned int* CSAnimationData::phases
 

arrayPointer # sizePhases

Definition at line 65 of file CSAnimation.h.

CSAnimationPictures* CSAnimationData::pictures
 

above data for animation pictures

Definition at line 66 of file CSAnimation.h.

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


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