#include "bsp.h"
#include "../../common/routing.h"
Go to the source code of this file.
Functions | |
static int | CheckUnit (unsigned int unitnum) |
static void | CheckUnitThread (unsigned int unitnum) |
A wrapper for CheckUnit that is thread safe. | |
static void | CheckConnectionsThread (unsigned int unitnum) |
void | DoRouting (void) |
Calculates the routing of a map. | |
Variables | |
static const vec3_t | move_vec [4] |
static routing_t | Nmap [ACTOR_MAX_SIZE] |
static ipos3_t | wpMins |
world min and max values converted from vec to pos | |
static ipos3_t | wpMaxs |
Definition in file routing.c.
static void CheckConnectionsThread | ( | unsigned int | unitnum | ) | [static] |
Definition at line 93 of file routing.c.
References CORE_DIRECTIONS, mapTiles, PATHFINDING_WIDTH, RT_IS_BIDIRECTIONAL, RT_UpdateConnectionColumn(), VERB_EXTRA, Verb_Printf(), wpMaxs, and wpMins.
Referenced by DoRouting().
static int CheckUnit | ( | unsigned int | unitnum | ) | [static] |
Definition at line 47 of file routing.c.
References mapTiles, PATHFINDING_HEIGHT, PATHFINDING_WIDTH, RT_CheckCell(), wpMaxs, and wpMins.
Referenced by CheckUnitThread().
static void CheckUnitThread | ( | unsigned int | unitnum | ) | [static] |
A wrapper for CheckUnit that is thread safe.
Definition at line 81 of file routing.c.
References CheckUnit(), and PATHFINDING_HEIGHT.
Referenced by DoRouting().
void DoRouting | ( | void | ) |
Calculates the routing of a map.
This is needed for tracing to work!!!
Definition at line 124 of file routing.c.
References ACTOR_MAX_SIZE, baseFilename, byte, CELL_HEIGHT, CheckConnectionsThread(), CheckUnitThread(), CompressRouting(), config, CORE_DIRECTIONS, curTile, data, debugTrace, EmitBrushes(), EmitPlanes(), i, LEVEL_ACTORCLIP, LittleLong(), MakeTracingNodes(), mapTiles, MAX_MAP_ROUTING, PATHFINDING_WIDTH, PopInfo(), pos, PushInfo(), qtrue, dMapTile_t::routedata, dMapTile_t::routedatasize, RT_FLOOR, RT_GetMapSize(), RT_IS_BIDIRECTIONAL, RT_WriteCSVFiles(), RunSingleThreadOn(), VecToPos, VectorCopy, VectorSet, VERB_NORMAL, wpMaxs, and wpMins.
Referenced by ProcessWorldModel().
Definition at line 41 of file routing.c.
Referenced by CheckConnectionsThread(), CheckUnit(), and DoRouting().
world min and max values converted from vec to pos
Definition at line 41 of file routing.c.
Referenced by CheckConnectionsThread(), CheckUnit(), and DoRouting().