Cafu Engine
cf::MapFileEntityT Struct Reference

Public Member Functions

 MapFileEntityT ()
 The default constructor. More...
 
 MapFileEntityT (unsigned long Index, TextParserT &TP)
 
void Transform (const Matrix4x4fT &Mat)
 Transforms all primitives in this entity by the given matrix. More...
 

Public Attributes

unsigned long MFIndex
 In the source cmap file, this was/is the MFIndex-th entity. Normally (e.g. immediately after loading the cmap file) this is identical to the index of this MapFileEntityT into the array of all entities. It is kept explicitly here in case the array of all entities is rearranged, as is done e.g. by the CaBSP loader. More...
 
ArrayT< MapFileBrushTMFBrushes
 
ArrayT< MapFileBezierPatchTMFPatches
 
ArrayT< MapFileTerrainTMFTerrains
 
ArrayT< MapFilePlantTMFPlants
 
ArrayT< MapFileModelTMFModels
 
std::map< std::string,
std::string > 
MFProperties
 

Constructor & Destructor Documentation

cf::MapFileEntityT::MapFileEntityT ( )
inline

The default constructor.

MapFileEntityT::MapFileEntityT ( unsigned long  Index,
TextParserT TP 
)
Exceptions
TextParserT::ParseErroron problems.

Member Function Documentation

void MapFileEntityT::Transform ( const Matrix4x4fT Mat)

Transforms all primitives in this entity by the given matrix.

Member Data Documentation

unsigned long cf::MapFileEntityT::MFIndex

In the source cmap file, this was/is the MFIndex-th entity. Normally (e.g. immediately after loading the cmap file) this is identical to the index of this MapFileEntityT into the array of all entities. It is kept explicitly here in case the array of all entities is rearranged, as is done e.g. by the CaBSP loader.


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