29 #include "../../common/routing.h"
52 if (x >
wpMaxs[0] - actorSize || y >
wpMaxs[1] - actorSize
76 for (newnum = basenum + PATHFINDING_HEIGHT - 1; newnum >= basenum; newnum--)
94 if (x >
wpMaxs[0] - actorSize || y >
wpMaxs[1] - actorSize
101 Verb_Printf(
VERB_EXTRA,
"%i %i %i %i (%i, %i, %i) (%i, %i, %i)\n", x, y, dir, actorSize,
wpMins[0],
wpMins[1],
wpMins[2],
wpMaxs[0],
wpMaxs[1],
wpMaxs[2]);
122 if (
config.generateDebugTrace)
162 for (i = 0; i < 2; i++) {
189 if (
config.generateTraceFile) {
195 for (i = 0; i < 3; i++)
198 for (i = 0; i < 3; i++)
#define VectorCopy(src, dest)
#define VectorSet(v, x, y, z)
byte routedata[MAX_MAP_ROUTING]
void RT_WriteCSVFiles(const Routing &routing, const char *baseFilename, const GridBox &box)
#define RT_IS_BIDIRECTIONAL
void MakeTracingNodes(int levels)
Use the bsp node structure to reconstruct efficient tracing structures that are used for fast visibil...
#define CELL_HEIGHT
A cell's height in QUANT sized units.
#define PATHFINDING_WIDTH
absolute max
byte * CompressRouting(byte *dataStart, byte *destStart, int l)
Compress the routing data of a map.
#define VecToPos(v, p)
Map boundary is +/- MAX_WORLD_WIDTH - to get into the positive area we add the possible max negative ...
signed char getFloor(const actorSizeEnum_t actorSize, const pos3_t pos) const
void RT_UpdateConnectionColumn(mapTiles_t *mapTiles, Routing &routing, const int actorSize, const int x, const int y, const int dir, const char **list, const int minZ, const int maxZ)
Routing Function to update the connection between two fields.
#define PATHFINDING_HEIGHT
15 max, adjusting above 8 will require a rewrite to the DV code
void EmitBrushes(void)
Writes the brush list to the bsp.
void RT_GetMapSize(mapTiles_t *mapTiles, AABB &mapBox)
Calculate the map size via model data and store grid size in map_min and map_max. This is done with e...
int RT_CheckCell(mapTiles_t *mapTiles, Routing &routing, const int actorSize, const int x, const int y, const int z, const char **list)
This function looks to see if an actor of a given size can occupy a cell(s) and if so identifies the ...
void EmitPlanes(void)
Emits planes to the bsp file.
GLsizei const GLvoid * data
static mapTiles_t mapTiles