doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
EditorMap.cpp File Reference
#include "../../idlib/precompiled.h"
#include "qe3.h"

Go to the source code of this file.

Functions

void AddRegionBrushes (void)
 
void RemoveRegionBrushes (void)
 
void DupLists ()
 
void Map_SaveBetween (void)
 
void Map_RestoreBetween (void)
 
bool CheckForTinyBrush (brush_t *b, int n, float fSize)
 
void Map_BuildBrushData (void)
 
entity_tMap_FindClass (char *cname)
 
int Map_GetUniqueEntityID (const char *prefix, const char *eclass)
 
bool Entity_NameIsUnique (const char *name)
 
void Map_Free (void)
 
entity_tAngledEntity ()
 
brush_t * BrushFromMapPatch (idMapPatch *mappatch, idVec3 origin)
 
brush_t * BrushFromMapBrush (idMapBrush *mapbrush, idVec3 origin)
 
entity_tEntityFromMapEntity (idMapEntity *mapent, CWaitDlg *dlg)
 
entity_tEntity_PostParse (entity_t *ent, brush_t *pList)
 
void Map_LoadFile (const char *filename)
 
void Map_VerifyCurrentMap (const char *map)
 
idMapPrimitiveBrushToMapPrimitive (const brush_t *b, const idVec3 &origin)
 
idMapEntityEntityToMapEntity (entity_t *e, bool use_region, CWaitDlg *dlg)
 
bool Map_SaveFile (const char *filename, bool use_region, bool autosave)
 
void Map_New (void)
 
bool Map_IsBrushFiltered (brush_t *b)
 
void Map_RegionOff (void)
 
void Map_ApplyRegion (void)
 
void Map_RegionSelectedBrushes (void)
 
void Map_RegionXY (void)
 
void Map_RegionTallBrush (void)
 
void Map_RegionBrush (void)
 
void UniqueTargetName (idStr &rStr)
 
void Map_ImportBuffer (char *buf, bool renameEntities)
 
void Map_ImportFile (char *fileName)
 
void Map_SaveSelected (char *fileName)
 
void Map_SaveSelected (CMemFile *pMemFile, CMemFile *pPatchFile)
 
bool WriteFileString (FILE *fp, char *string,...)
 
void MemFile_fprintf (CMemFile *pMemFile, const char *string,...)
 

Variables

int mapModified
 
char currentmap [1024]
 
brush_t active_brushes
 
brush_t selected_brushes
 
face_t * selected_face
 
brush_t * selected_face_brush
 
brush_t filtered_brushes
 
entity_t entities
 
entity_tworld_entity = NULL
 
brush_t between_brushes
 
entity_t between_entities
 
bool g_bRestoreBetween = false
 
bool region_active
 
idVec3 region_mins (MIN_WORLD_COORD, MIN_WORLD_COORD, MIN_WORLD_COORD)
 
idVec3 region_maxs (MAX_WORLD_COORD, MAX_WORLD_COORD, MAX_WORLD_COORD)
 
brush_t * region_sides [6]
 

Function Documentation

void AddRegionBrushes ( void  )

Definition at line 846 of file EditorMap.cpp.

entity_t* AngledEntity ( )

Definition at line 271 of file EditorMap.cpp.

brush_t* BrushFromMapBrush ( idMapBrush mapbrush,
idVec3  origin 
)

Definition at line 321 of file EditorMap.cpp.

brush_t* BrushFromMapPatch ( idMapPatch mappatch,
idVec3  origin 
)

Definition at line 301 of file EditorMap.cpp.

idMapPrimitive* BrushToMapPrimitive ( const brush_t *  b,
const idVec3 origin 
)

Definition at line 559 of file EditorMap.cpp.

bool CheckForTinyBrush ( brush_t *  b,
int  n,
float  fSize 
)

Definition at line 102 of file EditorMap.cpp.

void DupLists ( )

Definition at line 58 of file EditorMap.cpp.

bool Entity_NameIsUnique ( const char *  name)

Definition at line 194 of file EditorMap.cpp.

entity_t* Entity_PostParse ( entity_t ent,
brush_t *  pList 
)

Definition at line 555 of file EditorEntity.cpp.

entity_t* EntityFromMapEntity ( idMapEntity mapent,
CWaitDlg dlg 
)

Definition at line 368 of file EditorMap.cpp.

idMapEntity* EntityToMapEntity ( entity_t e,
bool  use_region,
CWaitDlg dlg 
)

Definition at line 614 of file EditorMap.cpp.

void Map_ApplyRegion ( void  )

Definition at line 981 of file EditorMap.cpp.

void Map_BuildBrushData ( void  )

Definition at line 121 of file EditorMap.cpp.

entity_t* Map_FindClass ( char *  cname)

Definition at line 147 of file EditorMap.cpp.

void Map_Free ( void  )

Definition at line 217 of file EditorMap.cpp.

int Map_GetUniqueEntityID ( const char *  prefix,
const char *  eclass 
)

Definition at line 163 of file EditorMap.cpp.

void Map_ImportBuffer ( char *  buf,
bool  renameEntities 
)

Definition at line 1145 of file EditorMap.cpp.

void Map_ImportFile ( char *  fileName)

Definition at line 1330 of file EditorMap.cpp.

bool Map_IsBrushFiltered ( brush_t *  b)

Definition at line 924 of file EditorMap.cpp.

void Map_LoadFile ( const char *  filename)

Definition at line 424 of file EditorMap.cpp.

void Map_New ( void  )

Definition at line 807 of file EditorMap.cpp.

void Map_RegionBrush ( void  )

Definition at line 1092 of file EditorMap.cpp.

void Map_RegionOff ( void  )

Definition at line 949 of file EditorMap.cpp.

void Map_RegionSelectedBrushes ( void  )

Definition at line 1003 of file EditorMap.cpp.

void Map_RegionTallBrush ( void  )

Definition at line 1067 of file EditorMap.cpp.

void Map_RegionXY ( void  )

Definition at line 1038 of file EditorMap.cpp.

void Map_RestoreBetween ( void  )

Definition at line 89 of file EditorMap.cpp.

void Map_SaveBetween ( void  )

Definition at line 75 of file EditorMap.cpp.

bool Map_SaveFile ( const char *  filename,
bool  use_region,
bool  autosave 
)

Definition at line 653 of file EditorMap.cpp.

void Map_SaveSelected ( char *  fileName)

Definition at line 1352 of file EditorMap.cpp.

void Map_SaveSelected ( CMemFile *  pMemFile,
CMemFile *  pPatchFile 
)

Definition at line 1392 of file EditorMap.cpp.

void Map_VerifyCurrentMap ( const char *  map)

Definition at line 553 of file EditorMap.cpp.

void MemFile_fprintf ( CMemFile *  pMemFile,
const char *  string,
  ... 
)

Definition at line 1526 of file EditorMap.cpp.

void RemoveRegionBrushes ( void  )

Definition at line 908 of file EditorMap.cpp.

void UniqueTargetName ( idStr rStr)

Definition at line 1114 of file EditorMap.cpp.

bool WriteFileString ( FILE *  fp,
char *  string,
  ... 
)

Definition at line 1427 of file EditorMap.cpp.

Variable Documentation

brush_t active_brushes

Definition at line 39 of file EditorMap.cpp.

brush_t between_brushes

Definition at line 66 of file EditorMap.cpp.

entity_t between_entities

Definition at line 67 of file EditorMap.cpp.

char currentmap[1024]

Definition at line 37 of file EditorMap.cpp.

entity_t entities

Definition at line 47 of file EditorMap.cpp.

brush_t filtered_brushes

Definition at line 45 of file EditorMap.cpp.

bool g_bRestoreBetween = false

Definition at line 69 of file EditorMap.cpp.

int mapModified

Definition at line 34 of file EditorMap.cpp.

bool region_active

Definition at line 835 of file EditorMap.cpp.

brush_t* region_sides[6]

Definition at line 839 of file EditorMap.cpp.

brush_t selected_brushes

Definition at line 40 of file EditorMap.cpp.

face_t* selected_face

Definition at line 42 of file EditorMap.cpp.

brush_t* selected_face_brush

Definition at line 43 of file EditorMap.cpp.

entity_t* world_entity = NULL

Definition at line 49 of file EditorMap.cpp.