UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MapTile Class Reference

Stores the data of a map tile, mostly the BSP stuff. More...

#include <typedefs.h>

Public Member Functions

void getTileBox (AABB &box)
 Calculate the bounding box for the tile (in mapunits) More...
 

Data Fields

char name [MAX_QPATH]
 
int idx
 
int numbrushsides
 
cBspBrushSide_tbrushsides
 
int numtexinfo
 
cBspSurface_tsurfaces
 
int numplanes
 
cBspPlane_tplanes
 
int numnodes
 
cBspNode_tnodes
 
int numleafs
 
cBspLeaf_tleafs
 
int emptyleaf
 
int numleafbrushes
 
unsigned short * leafbrushes
 
int nummodels
 
cBspModel_tmodels
 
int numbrushes
 
cBspBrush_tbrushes
 
cBspPlane_tbox_planes
 
int box_headnode
 
cBspBrush_tbox_brush
 
cBspLeaf_tbox_leaf
 
tnode_ttnodes
 
int numtheads
 
intptr_t thead [LEVEL_MAX]
 
int theadlevel [LEVEL_MAX]
 
int numcheads
 
cBspHead_t cheads [MAX_MAP_NODES]
 
ipos3_t wpMins
 
ipos3_t wpMaxs
 
byte lightquant
 
bytelightdata
 

Detailed Description

Stores the data of a map tile, mostly the BSP stuff.

Definition at line 85 of file typedefs.h.

Member Function Documentation

void MapTile::getTileBox ( AABB box)
inline

Calculate the bounding box for the tile (in mapunits)

Definition at line 137 of file typedefs.h.

References AABB::maxs, AABB::mins, PosToVec, UNIT_HEIGHT, UNIT_SIZE, VectorAdd, and VectorSubtract.

Referenced by CM_CompleteBoxTrace().

Field Documentation

cBspBrush_t* MapTile::box_brush

Definition at line 118 of file typedefs.h.

Referenced by CM_InitBoxHull().

int MapTile::box_headnode

Definition at line 117 of file typedefs.h.

Referenced by CM_HeadnodeForBox(), CM_HintedTransformedBoxTrace(), and CM_InitBoxHull().

cBspLeaf_t* MapTile::box_leaf

Definition at line 119 of file typedefs.h.

Referenced by CM_InitBoxHull().

cBspPlane_t* MapTile::box_planes

Definition at line 116 of file typedefs.h.

Referenced by CM_HeadnodeForBox(), and CM_InitBoxHull().

cBspBrush_t* MapTile::brushes

Definition at line 113 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadBrushes().

cBspBrushSide_t* MapTile::brushsides

Definition at line 91 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadBrushSides().

cBspHead_t MapTile::cheads[MAX_MAP_NODES]

Definition at line 128 of file typedefs.h.

int MapTile::emptyleaf

Definition at line 104 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadLeafs().

unsigned short* MapTile::leafbrushes

Definition at line 107 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadLeafBrushes().

cBspLeaf_t* MapTile::leafs

Definition at line 103 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadLeafs().

byte* MapTile::lightdata

Definition at line 134 of file typedefs.h.

Referenced by CM_GetVisibility(), and CMod_LoadLighting().

byte MapTile::lightquant

Definition at line 133 of file typedefs.h.

cBspModel_t* MapTile::models

Definition at line 110 of file typedefs.h.

Referenced by CM_MakeTracingNodes(), CMod_LoadEntityString(), and CMod_LoadSubmodels().

char MapTile::name[MAX_QPATH]

Definition at line 87 of file typedefs.h.

Referenced by CM_AddMapTile(), and mapTiles_s::printTilesAt().

cBspNode_t* MapTile::nodes

Definition at line 100 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadNodes().

int MapTile::numbrushes

Definition at line 112 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadBrushes().

int MapTile::numbrushsides

Definition at line 90 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadBrushSides().

int MapTile::numcheads

Definition at line 127 of file typedefs.h.

Referenced by CM_MakeTracingNodes().

int MapTile::numleafbrushes

Definition at line 106 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadLeafBrushes().

int MapTile::numleafs

Definition at line 102 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadLeafs().

int MapTile::nummodels

Definition at line 109 of file typedefs.h.

Referenced by CM_AddMapTile(), CM_MakeTracingNodes(), and CMod_LoadSubmodels().

int MapTile::numnodes

Definition at line 99 of file typedefs.h.

Referenced by CM_InitBoxHull(), CM_MakeTracingNodes(), and CMod_LoadNodes().

int MapTile::numplanes

Definition at line 96 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadPlanes().

int MapTile::numtexinfo

Definition at line 93 of file typedefs.h.

Referenced by CMod_LoadBrushSides(), and CMod_LoadSurfaces().

int MapTile::numtheads

Definition at line 123 of file typedefs.h.

Referenced by CM_MakeTracingNodes().

cBspPlane_t* MapTile::planes

Definition at line 97 of file typedefs.h.

Referenced by CM_InitBoxHull(), CMod_LoadBrushSides(), CMod_LoadNodes(), and CMod_LoadPlanes().

cBspSurface_t* MapTile::surfaces

Definition at line 94 of file typedefs.h.

Referenced by CMod_LoadBrushSides(), and CMod_LoadSurfaces().

intptr_t MapTile::thead[LEVEL_MAX]

Definition at line 124 of file typedefs.h.

Referenced by CM_MakeTracingNodes().

int MapTile::theadlevel[LEVEL_MAX]

Definition at line 125 of file typedefs.h.

Referenced by CM_MakeTracingNodes().

tnode_t* MapTile::tnodes

Definition at line 122 of file typedefs.h.

Referenced by CM_MakeTracingNodes().

ipos3_t MapTile::wpMaxs

Definition at line 131 of file typedefs.h.

Referenced by CM_GetVisibility(), CMod_LoadRouting(), and mapTiles_s::printTilesAt().

ipos3_t MapTile::wpMins

Definition at line 130 of file typedefs.h.

Referenced by CM_GetVisibility(), CMod_LoadRouting(), and mapTiles_s::printTilesAt().


The documentation for this class was generated from the following file: