|
UFO: Alien Invasion
|
#include "checkentities.h"#include "../../../shared/mathlib.h"#include "../../../shared/entitiesdef.h"#include "../common/shared.h"#include "../bsp.h"#include "checklib.h"
Go to the source code of this file.
Macros | |
| #define | MIN_TILE_SIZE 256 |
Functions | |
| static void | Check_MapSize (vec3_t mapSize) |
| mapbrush_t ** | Check_ExtraBrushesForWorldspawn (int *numBrushes) |
| single brushes in func_groups are moved to worldspawn. this function allocates space for pointers to those brushes. called when the .map is written back in map.c | |
| static bool | Check_IsInfoStart (const char *classname) |
| see if the entity is am actor start point | |
| static bool | Check_InfoStartAligned (const entityDef_t *ed, const entity_t *e) |
| check alignment using abstract size and mandatory origin | |
| static bool | Check_TargetExists (const epair_t *kvp) |
| check targets exist (targetname), and check targetnames are targetted (target) | |
| static void | Check_EntityWithBrushes (entity_t *e, const char *classname, int entnum) |
| void | CheckEntities (void) |
| Perform an entity check. | |
| void | Check_Stats (void) |
| print map stats on -stats | |
Variables | |
| static int | numToMoveToWorldspawn = 0 |
| #define MIN_TILE_SIZE 256 |
Definition at line 34 of file checkentities.cpp.
Referenced by Check_Stats().
Definition at line 90 of file checkentities.cpp.
References Check_Printf(), entity_t::numbrushes, numToMoveToWorldspawn, Q_streq, entity_t::skip, and VERB_CHECK.
Referenced by CheckEntities().
| mapbrush_t ** Check_ExtraBrushesForWorldspawn | ( | int * | numBrushes | ) |
single brushes in func_groups are moved to worldspawn. this function allocates space for pointers to those brushes. called when the .map is written back in map.c
| [out] | numBrushes | the number of brushes |
Definition at line 251 of file checkentities.cpp.
References entities, entity_t::firstbrush, i, mapbrushes, Mem_AllocTypeN, name, num_entities, entity_t::numbrushes, numToMoveToWorldspawn, Q_streq, Sys_Error(), and ValueForKey().
Referenced by WriteMapFile().
|
static |
check alignment using abstract size and mandatory origin
Definition at line 58 of file checkentities.cpp.
References ED_ERROR, ED_GetIntVector(), ED_GetKeyDefEntity(), ED_GetLastError(), int(), entity_t::origin, Sys_Error(), and UNIT_SIZE.
Referenced by CheckEntities().
|
static |
see if the entity is am actor start point
Definition at line 47 of file checkentities.cpp.
References Q_strstart().
Referenced by CheckEntities().
needs to be done here, on map brushes as worldMins and worldMaxs from levels.c are only calculated on BSPing
| [out] | mapSize | the returned size in map units |
Definition at line 226 of file checkentities.cpp.
References AABB::add(), AABB::getDiagonal(), i, mapbrushes, nummapbrushes, winding_t::numpoints, mapbrush_t::numsides, mapbrush_t::original_sides, winding_t::p, and AABB::setNegativeVolume().
Referenced by Check_Stats().
print map stats on -stats
Definition at line 181 of file checkentities.cpp.
References Check_InitEntityDefs(), Check_MapSize(), Com_Printf(), entities, entityDefs, i, Mem_AllocTypeN, Mem_Free, MIN_TILE_SIZE, name, num_entities, numEntityDefs, nummapbrushes, nummapbrushsides, nummapplanes, Q_streq, UNIT_HEIGHT, UNIT_SIZE, ValueForKey(), VERB_NORMAL, and Verb_Printf().
Referenced by main().
|
static |
check targets exist (targetname), and check targetnames are targetted (target)
Definition at line 73 of file checkentities.cpp.
References entities, i, epair_t::key, num_entities, Q_streq, epair_t::value, and ValueForKey().
Referenced by CheckEntities().
Perform an entity check.
Definition at line 112 of file checkentities.cpp.
References Check_EntityWithBrushes(), Check_InfoStartAligned(), Check_InitEntityDefs(), Check_IsInfoStart(), Check_Printf(), Check_TargetExists(), entityDef_t::classname, entityKeyDef_t::defaultVal, ED_CheckKey(), ED_ERROR, ED_GetEntityDef(), ED_GetKeyDefEntity(), ED_GetLastError(), ED_MANDATORY, entities, entity_t::epairs, entityKeyDef_t::flags, i, epair_t::key, entityDef_t::keyDefs, entityKeyDef_t::name, name, epair_t::next, num_entities, Q_streq, Q_strstart(), Q_strvalid, SetKeyValue(), epair_t::value, ValueForKey(), and VERB_CHECK.
Referenced by main().
|
static |
Definition at line 36 of file checkentities.cpp.
Referenced by Check_EntityWithBrushes(), and Check_ExtraBrushesForWorldspawn().