doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Functions
EditorEntity.h File Reference

Go to the source code of this file.

Classes

struct  entity_s
 

Typedefs

typedef struct entity_s entity_t
 

Functions

void Eclass_InitForSourceDirectory (const char *path)
 
eclass_t * Eclass_ForName (const char *name, bool has_brushes)
 
bool Eclass_hasModel (eclass_t *e, idVec3 &vMin, idVec3 &vMax)
 
void ParseEpair (idDict *dict)
 
const char * ValueForKey (entity_t *ent, const char *key)
 
int GetNumKeys (entity_t *ent)
 
const char * GetKeyString (entity_t *ent, int iIndex)
 
void SetKeyValue (entity_t *ent, const char *key, const char *value, bool trackAngles=true)
 
void DeleteKey (entity_t *ent, const char *key)
 
float FloatForKey (entity_t *ent, const char *key)
 
int IntForKey (entity_t *ent, const char *key)
 
bool GetVectorForKey (entity_t *ent, const char *key, idVec3 &vec)
 
bool GetVector4ForKey (entity_t *ent, const char *key, idVec4 &vec)
 
bool GetFloatForKey (entity_t *end, const char *key, float *f)
 
void SetKeyVec3 (entity_t *ent, const char *key, idVec3 v)
 
void SetKeyMat3 (entity_t *ent, const char *key, idMat3 m)
 
bool GetMatrixForKey (entity_t *ent, const char *key, idMat3 &mat)
 
void Entity_UpdateSoundEmitter (entity_t *ent)
 
idCurve< idVec3 > * Entity_MakeCurve (entity_t *e)
 
void Entity_UpdateCurveData (entity_t *e)
 
void Entity_SetCurveData (entity_t *e)
 
void Entity_Free (entity_t *e)
 
void Entity_FreeEpairs (entity_t *e)
 
int Entity_MemorySize (entity_t *e)
 
entity_tEntity_Parse (bool onlypairs, brush_t *pList=NULL)
 
void Entity_Write (entity_t *e, FILE *f, bool use_region)
 
void Entity_WriteSelected (entity_t *e, FILE *f)
 
void Entity_WriteSelected (entity_t *e, CMemFile *)
 
entity_tEntity_Create (eclass_t *c, bool forceFixed=false)
 
entity_tEntity_Clone (entity_t *e)
 
void Entity_AddToList (entity_t *e, entity_t *list)
 
void Entity_RemoveFromList (entity_t *e)
 
bool EntityHasModel (entity_t *ent)
 
void Entity_LinkBrush (entity_t *e, brush_t *b)
 
void Entity_UnlinkBrush (brush_t *b)
 
entity_tFindEntity (const char *pszKey, const char *pszValue)
 
entity_tFindEntityInt (const char *pszKey, int iValue)
 
entity_tEntity_New ()
 
void Entity_SetName (entity_t *e, const char *name)
 
int GetUniqueTargetId (int iHint)
 
eclass_t * GetCachedModel (entity_t *pEntity, const char *pName, idVec3 &vMin, idVec3 &vMax)
 
void Entity_Name (entity_t *e, bool force)
 
bool IsBrushSelected (brush_t *bSel)
 

Typedef Documentation

typedef struct entity_s entity_t

Function Documentation

void DeleteKey ( entity_t ent,
const char *  key 
)

Definition at line 175 of file EditorEntity.cpp.

eclass_t* Eclass_ForName ( const char *  name,
bool  has_brushes 
)
bool Eclass_hasModel ( eclass_t *  e,
idVec3 vMin,
idVec3 vMax 
)
void Eclass_InitForSourceDirectory ( const char *  path)
void Entity_AddToList ( entity_t e,
entity_t list 
)

Definition at line 305 of file EditorEntity.cpp.

entity_t* Entity_Clone ( entity_t e)

Definition at line 1273 of file EditorEntity.cpp.

entity_t* Entity_Create ( eclass_t *  c,
bool  forceFixed = false 
)

Definition at line 1129 of file EditorEntity.cpp.

void Entity_Free ( entity_t e)

Definition at line 336 of file EditorEntity.cpp.

void Entity_FreeEpairs ( entity_t e)

Definition at line 296 of file EditorEntity.cpp.

void Entity_LinkBrush ( entity_t e,
brush_t *  b 
)

Definition at line 1236 of file EditorEntity.cpp.

idCurve<idVec3>* Entity_MakeCurve ( entity_t e)

Definition at line 516 of file EditorEntity.cpp.

int Entity_MemorySize ( entity_t e)

Definition at line 358 of file EditorEntity.cpp.

void Entity_Name ( entity_t e,
bool  force 
)

Definition at line 1083 of file EditorEntity.cpp.

entity_t* Entity_New ( )

Definition at line 459 of file EditorEntity.cpp.

entity_t* Entity_Parse ( bool  onlypairs,
brush_t *  pList = NULL 
)

Definition at line 797 of file EditorEntity.cpp.

void Entity_RemoveFromList ( entity_t e)

Definition at line 321 of file EditorEntity.cpp.

void Entity_SetCurveData ( entity_t e)

Definition at line 529 of file EditorEntity.cpp.

void Entity_SetName ( entity_t e,
const char *  name 
)

Definition at line 1068 of file EditorEntity.cpp.

void Entity_UnlinkBrush ( brush_t *  b)

Definition at line 1256 of file EditorEntity.cpp.

void Entity_UpdateCurveData ( entity_t e)

Definition at line 483 of file EditorEntity.cpp.

void Entity_UpdateSoundEmitter ( entity_t ent)

Definition at line 1369 of file EditorEntity.cpp.

void Entity_Write ( entity_t e,
FILE *  f,
bool  use_region 
)

Definition at line 866 of file EditorEntity.cpp.

void Entity_WriteSelected ( entity_t e,
FILE *  f 
)

Definition at line 961 of file EditorEntity.cpp.

void Entity_WriteSelected ( entity_t e,
CMemFile *   
)

Definition at line 1015 of file EditorEntity.cpp.

bool EntityHasModel ( entity_t ent)

Definition at line 441 of file EditorEntity.cpp.

entity_t* FindEntity ( const char *  pszKey,
const char *  pszValue 
)

Definition at line 1327 of file EditorEntity.cpp.

entity_t* FindEntityInt ( const char *  pszKey,
int  iValue 
)

Definition at line 1345 of file EditorEntity.cpp.

float FloatForKey ( entity_t ent,
const char *  key 
)

Definition at line 186 of file EditorEntity.cpp.

eclass_t* GetCachedModel ( entity_t pEntity,
const char *  pName,
idVec3 vMin,
idVec3 vMax 
)
bool GetFloatForKey ( entity_t end,
const char *  key,
float f 
)

Definition at line 248 of file EditorEntity.cpp.

const char* GetKeyString ( entity_t ent,
int  iIndex 
)

Definition at line 53 of file EditorEntity.cpp.

bool GetMatrixForKey ( entity_t ent,
const char *  key,
idMat3 mat 
)

Definition at line 264 of file EditorEntity.cpp.

int GetNumKeys ( entity_t ent)

Definition at line 41 of file EditorEntity.cpp.

int GetUniqueTargetId ( int  iHint)

Definition at line 1294 of file EditorEntity.cpp.

bool GetVector4ForKey ( entity_t ent,
const char *  key,
idVec4 vec 
)

Definition at line 230 of file EditorEntity.cpp.

bool GetVectorForKey ( entity_t ent,
const char *  key,
idVec3 vec 
)

Definition at line 212 of file EditorEntity.cpp.

int IntForKey ( entity_t ent,
const char *  key 
)

Definition at line 201 of file EditorEntity.cpp.

bool IsBrushSelected ( brush_t *  bSel)

Definition at line 946 of file EditorEntity.cpp.

void ParseEpair ( idDict dict)

Definition at line 427 of file EditorEntity.cpp.

void SetKeyMat3 ( entity_t ent,
const char *  key,
idMat3  m 
)

Definition at line 152 of file EditorEntity.cpp.

void SetKeyValue ( entity_t ent,
const char *  key,
const char *  value,
bool  trackAngles = true 
)

Definition at line 109 of file EditorEntity.cpp.

void SetKeyVec3 ( entity_t ent,
const char *  key,
idVec3  v 
)

Definition at line 133 of file EditorEntity.cpp.

const char* ValueForKey ( entity_t ent,
const char *  key 
)

Definition at line 78 of file EditorEntity.cpp.