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

CSWorldData Class Reference

#include <CSWorld.h>


Public Member Functions

 CSWorldData ()
 ~CSWorldData ()

Data Fields

char * id
char * musicName
MapDatasmaps
int layers


Constructor & Destructor Documentation

CSWorldData::CSWorldData  )  [inline]
 

Definition at line 58 of file CSWorld.h.

References layers, MapDatas, maps, and musicName.

00059         {
00060             musicName = 0;
00061             id = 0;
00062             layers = 0;
00063             maps = new MapDatas();
00064         }

CSWorldData::~CSWorldData  )  [inline]
 

Definition at line 66 of file CSWorld.h.

References maps, musicName, and MapData::name.

00067         {
00068             if (id != 0)
00069             {
00070                 free (id);
00071                 id = 0;
00072             }
00073             if (musicName != 0)
00074             {
00075                 free (musicName);
00076                 musicName = 0;
00077             }
00078             if (maps != 0)
00079             {
00080                 for (MapDatas::iterator iter = maps->begin(); iter != maps->end(); iter++)
00081                 {
00082                     MapData *help = (MapData *) *iter;
00083                     free(help->name);
00084                     help->name = 0;
00085                     delete help;
00086                 }
00087                 delete maps;
00088             }
00089         }


Field Documentation

char* CSWorldData::id
 

Definition at line 53 of file CSWorld.h.

char* CSWorldData::musicName
 

Definition at line 54 of file CSWorld.h.

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

MapDatas* CSWorldData::maps
 

Definition at line 55 of file CSWorld.h.

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

int CSWorldData::layers
 

Definition at line 56 of file CSWorld.h.

Referenced by CSWorldData().


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