doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
idMapFile Class Reference

#include <MapFile.h>

Public Member Functions

 idMapFile (void)
 
 ~idMapFile (void)
 
bool Parse (const char *filename, bool ignoreRegion=false, bool osPath=false)
 
bool Write (const char *fileName, const char *ext, bool fromBasePath=true)
 
int GetNumEntities (void) const
 
idMapEntityGetEntity (int i) const
 
const char * GetName (void) const
 
ID_TIME_T GetFileTime (void) const
 
unsigned int GetGeometryCRC (void) const
 
bool NeedsReload ()
 
int AddEntity (idMapEntity *mapentity)
 
idMapEntityFindEntity (const char *name)
 
void RemoveEntity (idMapEntity *mapEnt)
 
void RemoveEntities (const char *classname)
 
void RemoveAllEntities ()
 
void RemovePrimitiveData ()
 
bool HasPrimitiveData ()
 

Protected Attributes

float version
 
ID_TIME_T fileTime
 
unsigned int geometryCRC
 
idList< idMapEntity * > entities
 
idStr name
 
bool hasPrimitiveData
 

Private Member Functions

void SetGeometryCRC (void)
 

Detailed Description

Definition at line 184 of file MapFile.h.

Constructor & Destructor Documentation

ID_INLINE idMapFile::idMapFile ( void  )

Definition at line 229 of file MapFile.h.

idMapFile::~idMapFile ( void  )
inline

Definition at line 187 of file MapFile.h.

Member Function Documentation

int idMapFile::AddEntity ( idMapEntity mapentity)

Definition at line 885 of file MapFile.cpp.

idMapEntity * idMapFile::FindEntity ( const char *  name)

Definition at line 895 of file MapFile.cpp.

idMapEntity* idMapFile::GetEntity ( int  i) const
inline

Definition at line 198 of file MapFile.h.

ID_TIME_T idMapFile::GetFileTime ( void  ) const
inline

Definition at line 202 of file MapFile.h.

unsigned int idMapFile::GetGeometryCRC ( void  ) const
inline

Definition at line 205 of file MapFile.h.

const char* idMapFile::GetName ( void  ) const
inline

Definition at line 200 of file MapFile.h.

int idMapFile::GetNumEntities ( void  ) const
inline

Definition at line 196 of file MapFile.h.

bool idMapFile::HasPrimitiveData ( )
inline

Definition at line 215 of file MapFile.h.

bool idMapFile::NeedsReload ( )

Definition at line 959 of file MapFile.cpp.

bool idMapFile::Parse ( const char *  filename,
bool  ignoreRegion = false,
bool  osPath = false 
)

Definition at line 720 of file MapFile.cpp.

void idMapFile::RemoveAllEntities ( )

Definition at line 936 of file MapFile.cpp.

void idMapFile::RemoveEntities ( const char *  classname)

Definition at line 920 of file MapFile.cpp.

void idMapFile::RemoveEntity ( idMapEntity mapEnt)

Definition at line 910 of file MapFile.cpp.

void idMapFile::RemovePrimitiveData ( )

Definition at line 946 of file MapFile.cpp.

void idMapFile::SetGeometryCRC ( void  )
private

Definition at line 871 of file MapFile.cpp.

bool idMapFile::Write ( const char *  fileName,
const char *  ext,
bool  fromBasePath = true 
)

Definition at line 833 of file MapFile.cpp.

Member Data Documentation

idList<idMapEntity *> idMapFile::entities
protected

Definition at line 221 of file MapFile.h.

ID_TIME_T idMapFile::fileTime
protected

Definition at line 219 of file MapFile.h.

unsigned int idMapFile::geometryCRC
protected

Definition at line 220 of file MapFile.h.

bool idMapFile::hasPrimitiveData
protected

Definition at line 223 of file MapFile.h.

idStr idMapFile::name
protected

Definition at line 222 of file MapFile.h.

float idMapFile::version
protected

Definition at line 218 of file MapFile.h.


The documentation for this class was generated from the following files: