UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
checklib.cpp File Reference

functions for check.c More...

#include "checklib.h"
#include "../ufo2map.h"
#include "../../../shared/entitiesdef.h"
#include "../bsp.h"
#include "check.h"

Go to the source code of this file.

Functions

void Check_Printf (verbosityLevel_t msgVerbLevel, bool change, int entnum, int brushnum, const char *format,...)
 decides wether to proceed with output based on verbosity and ufo2map's mode: check/fix/compile More...
 
void Check_InitEntityDefs (void)
 
void Check_Free (void)
 free the mapbrush_t::nearBrushes, compositeSides and entitiesdef.h stuff. More...
 

Detailed Description

functions for check.c

Definition in file checklib.cpp.

Function Documentation

void Check_InitEntityDefs ( void  )
Note
Check_Free calls ED_Free, which frees all outstanding malloc'd space from this function

Definition at line 131 of file checklib.cpp.

References ED_ERROR, ED_GetLastError(), ED_Parse(), FS_LoadFile(), Mem_Free, numEntityDefs, and Sys_Error().

Referenced by Check_Stats(), and CheckEntities().

void Check_Printf ( verbosityLevel_t  msgVerbLevel,
bool  change,
int  entnum,
int  brushnum,
const char *  format,
  ... 
)

decides wether to proceed with output based on verbosity and ufo2map's mode: check/fix/compile

Parameters
msgVerbLevelThe level of importance of the message to be compared to the -v value
changetrue if there will be an automatic change on -fix
entnumthe entity the brush is from.send NUM_NONE if the report is a summary, not regarding a specific entity or brush
brushnumthe brush that the report is about. send NUM_NONE, if the report only regards an entity
formatA printf type formatting string
Note
for brushnum and entnum send NUM_SAME in multi-call messages to indicate that the message still regards the same brush or entity
the start of a report on a particular item (eg brush) is specially prefixed. The function notes newlines in the previous call, and prefixes this message with a string depending on wether the message indicates a change and the entity and brush number.
if entnum is set to NUM_SAME, then msgVerbLevel is carried over from the previous call.
See also
Com_Printf, Verb_Printf, DisplayContentFlags

Definition at line 49 of file checklib.cpp.

References AbortPrint(), config, NUM_NONE, NUM_SAME, PrintMapName(), Q_vsnprintf(), VERB_MAPNAME, and VERB_NORMAL.

Referenced by Check_BrushIntersection(), Check_ContainedBrushes(), Check_DuplicateBrushPlanes(), Check_EntityWithBrushes(), Check_FindCompositeSides(), Check_SidesOverlap(), CheckBrushes(), CheckEntities(), CheckFillLevelFlags(), CheckLevelFlags(), CheckMapMicro(), CheckMixedFaceContents(), CheckNodraws(), CheckPropagateParserContentFlags(), CheckTexturesBasedOnFlags(), CheckZFighting(), DisplayContentFlags(), and SetImpliedFlags().