UFO: Alien Invasion
Loading...
Searching...
No Matches
check.h
Go to the documentation of this file.
1
6
7/*
8Copyright (C) 1997-2001 Id Software, Inc.
9
10This program is free software; you can redistribute it and/or
11modify it under the terms of the GNU General Public License
12as published by the Free Software Foundation; either version 2
13of the License, or (at your option) any later version.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
19See the GNU General Public License for more details.
20
21You should have received a copy of the GNU General Public License
22along with this program; if not, write to the Free Software
23Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
25*/
26
27#pragma once
28
29#include "../map.h"
30
32typedef struct compositeSide_s {
33 struct side_s** memberSides;
36
43extern int numCompositeSides;
44
47void CheckLevelFlags(void);
48void CheckFillLevelFlags(void);
49void CheckBrushes(void);
50void CheckNodraws(void);
51void CheckMixedFaceContents(void);
52void CheckMapMicro(void);
54void FixErrors(void);
55void DisplayContentFlags(const int flags);
56void SetImpliedFlags (side_t* side, brush_texture_t* tex, const mapbrush_t* brush);
58void Check_ContainedBrushes(void);
59void CheckZFighting(void);
compositeSide_t compositeSides[MAX_MAP_SIDES/2]
Definition check.cpp:37
int numCompositeSides
Definition check.cpp:38
void Check_ContainedBrushes(void)
find duplicated brushes and brushes contained inside brushes
Definition check.cpp:912
void CheckFlagsBasedOnTextures(void)
sets content flags based on textures
Definition check.cpp:1532
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 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
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 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
void Check_BrushIntersection(void)
reports intersection between optimisable map brushes
Definition check.cpp:589
void CheckLevelFlags(void)
sets all levelflags, if none are set.
Definition check.cpp:1385
void FixErrors(void)
void CheckFillLevelFlags(void)
ensures set levelflags are in one contiguous block
Definition check.cpp:1364
void SetImpliedFlags(side_t *side, brush_texture_t *tex, const mapbrush_t *brush)
Sets surface flags dependent on assigned texture.
Definition check.cpp:1448
void CheckMapMicro(void)
report brushes from the map below 1 unit^3
Definition check.cpp:1293
void CheckZFighting(void)
check all brushes for overlapping shared faces
Definition check.cpp:843
void CheckBrushes(void)
Definition check.cpp:1708
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
#define MAX_MAP_SIDES
Definition defines.h:383
int numMembers
Definition check.h:34
struct side_s ** memberSides
Definition check.h:33
Definition map.h:60