UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
check.h
Go to the documentation of this file.
1 
7 /*
8 Copyright (C) 1997-2001 Id Software, Inc.
9 
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License
12 as published by the Free Software Foundation; either version 2
13 of the License, or (at your option) any later version.
14 
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 
19 See the GNU General Public License for more details.
20 
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 
25 */
26 
27 #pragma once
28 
29 #include "../map.h"
30 
32 typedef struct compositeSide_s {
33  struct side_s** memberSides;
36 
43 extern int numCompositeSides;
44 
45 void CheckTexturesBasedOnFlags(void);
46 void CheckFlagsBasedOnTextures(void);
47 void CheckLevelFlags(void);
48 void CheckFillLevelFlags(void);
49 void CheckBrushes(void);
50 void CheckNodraws(void);
51 void CheckMixedFaceContents(void);
52 void CheckMapMicro(void);
53 void Check_BrushIntersection(void);
54 void FixErrors(void);
55 void DisplayContentFlags(const int flags);
56 void SetImpliedFlags (side_t* side, brush_texture_t* tex, const mapbrush_t* brush);
58 void Check_ContainedBrushes(void);
59 void CheckZFighting(void);
void Check_ContainedBrushes(void)
find duplicated brushes and brushes contained inside brushes
Definition: check.cpp:912
void CheckBrushes(void)
Definition: check.cpp:1708
struct compositeSide_s compositeSide_t
void CheckMixedFaceContents(void)
contentflags should be the same on each face of a brush. print warnings if they are not...
Definition: check.cpp:1647
void CheckTexturesBasedOnFlags(void)
check that sides have textures and that where content/surface flags are set the texture is correct...
Definition: check.cpp:1555
void DisplayContentFlags(const int flags)
prints a list of the names of the set content flags or "no contentflags" if all bits are 0 ...
Definition: check.cpp:1309
int numCompositeSides
Definition: check.cpp:38
void CheckFlagsBasedOnTextures(void)
sets content flags based on textures
Definition: check.cpp:1532
void CheckFillLevelFlags(void)
ensures set levelflags are in one contiguous block
Definition: check.cpp:1364
void CheckLevelFlags(void)
sets all levelflags, if none are set.
Definition: check.cpp:1385
#define MAX_MAP_SIDES
Definition: defines.h:383
struct mapbrush_s * brush
Definition: map.h:72
void CheckMapMicro(void)
report brushes from the map below 1 unit^3
Definition: check.cpp:1293
compositeSide_t compositeSides[MAX_MAP_SIDES/2]
Definition: check.cpp:37
Definition: map.h:60
void CheckPropagateParserContentFlags(mapbrush_t *b)
some contentlflags are set as a result of some surface flag. For example, if one face is TRANS* then ...
Definition: check.cpp:1619
struct side_s ** memberSides
Definition: check.h:33
int numMembers
Definition: check.h:34
void FixErrors(void)
void SetImpliedFlags(side_t *side, brush_texture_t *tex, const mapbrush_t *brush)
Sets surface flags dependent on assigned texture.
Definition: check.cpp:1448
Definition: map.h:75
void CheckZFighting(void)
check all brushes for overlapping shared faces
Definition: check.cpp:843
void Check_BrushIntersection(void)
reports intersection between optimisable map brushes
Definition: check.cpp:589
void CheckNodraws(void)
check for faces which can safely be set to SURF_NODRAW because they are pressed against the faces of ...
Definition: check.cpp:984