UFO: Alien Invasion
Loading...
Searching...
No Matches
MapTile Class Reference

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

#include <typedefs.h>

Collaboration diagram for MapTile:
Collaboration graph

Public Member Functions

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

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

◆ getTileBox()

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, VectorSubtract, wpMaxs, and wpMins.

Referenced by CM_CompleteBoxTrace().

Field Documentation

◆ box_brush

cBspBrush_t* MapTile::box_brush

Definition at line 118 of file typedefs.h.

Referenced by CM_InitBoxHull().

◆ box_headnode

int MapTile::box_headnode

Definition at line 117 of file typedefs.h.

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

◆ box_leaf

cBspLeaf_t* MapTile::box_leaf

Definition at line 119 of file typedefs.h.

Referenced by CM_InitBoxHull().

◆ box_planes

cBspPlane_t* MapTile::box_planes

Definition at line 116 of file typedefs.h.

Referenced by CM_HeadnodeForBox(), and CM_InitBoxHull().

◆ brushes

cBspBrush_t* MapTile::brushes

Definition at line 113 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadBrushes().

◆ brushsides

cBspBrushSide_t* MapTile::brushsides

Definition at line 91 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadBrushSides().

◆ cheads

cBspHead_t MapTile::cheads[MAX_MAP_NODES]

Definition at line 128 of file typedefs.h.

◆ emptyleaf

int MapTile::emptyleaf

Definition at line 104 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadLeafs().

◆ idx

◆ leafbrushes

unsigned short* MapTile::leafbrushes

Definition at line 107 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadLeafBrushes().

◆ leafs

cBspLeaf_t* MapTile::leafs

Definition at line 103 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadLeafs().

◆ lightdata

byte* MapTile::lightdata

Definition at line 134 of file typedefs.h.

Referenced by CM_GetVisibility(), and CMod_LoadLighting().

◆ lightquant

byte MapTile::lightquant

Definition at line 133 of file typedefs.h.

◆ models

cBspModel_t* MapTile::models

Definition at line 110 of file typedefs.h.

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

◆ name

char MapTile::name[MAX_QPATH]

Definition at line 87 of file typedefs.h.

Referenced by CM_AddMapTile().

◆ nodes

cBspNode_t* MapTile::nodes

Definition at line 100 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadNodes().

◆ numbrushes

int MapTile::numbrushes

Definition at line 112 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadBrushes().

◆ numbrushsides

int MapTile::numbrushsides

Definition at line 90 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadBrushSides().

◆ numcheads

int MapTile::numcheads

Definition at line 127 of file typedefs.h.

Referenced by CM_MakeTracingNodes().

◆ numleafbrushes

int MapTile::numleafbrushes

Definition at line 106 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadLeafBrushes().

◆ numleafs

int MapTile::numleafs

Definition at line 102 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadLeafs().

◆ nummodels

int MapTile::nummodels

Definition at line 109 of file typedefs.h.

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

◆ numnodes

int MapTile::numnodes

Definition at line 99 of file typedefs.h.

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

◆ numplanes

int MapTile::numplanes

Definition at line 96 of file typedefs.h.

Referenced by CM_InitBoxHull(), and CMod_LoadPlanes().

◆ numtexinfo

int MapTile::numtexinfo

Definition at line 93 of file typedefs.h.

Referenced by CMod_LoadBrushSides(), and CMod_LoadSurfaces().

◆ numtheads

int MapTile::numtheads

Definition at line 123 of file typedefs.h.

Referenced by CM_MakeTracingNodes().

◆ planes

cBspPlane_t* MapTile::planes

Definition at line 97 of file typedefs.h.

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

◆ surfaces

cBspSurface_t* MapTile::surfaces

Definition at line 94 of file typedefs.h.

Referenced by CMod_LoadBrushSides(), and CMod_LoadSurfaces().

◆ thead

intptr_t MapTile::thead[LEVEL_MAX]

Definition at line 124 of file typedefs.h.

Referenced by CM_MakeTracingNodes().

◆ theadlevel

int MapTile::theadlevel[LEVEL_MAX]

Definition at line 125 of file typedefs.h.

Referenced by CM_MakeTracingNodes().

◆ tnodes

tnode_t* MapTile::tnodes

Definition at line 122 of file typedefs.h.

Referenced by CM_MakeTracingNodes().

◆ wpMaxs

ipos3_t MapTile::wpMaxs

Definition at line 131 of file typedefs.h.

Referenced by CM_GetVisibility(), CMod_LoadRouting(), and getTileBox().

◆ wpMins

ipos3_t MapTile::wpMins

Definition at line 130 of file typedefs.h.

Referenced by CM_GetVisibility(), CMod_LoadRouting(), and getTileBox().


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