52 if (x >
wpMaxs[0] - actorSize || y >
wpMaxs[1] - actorSize
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++)
void EmitBrushes(void)
Writes the brush list to the bsp.
void EmitPlanes(void)
Emits planes to the bsp file.
void MakeTracingNodes(int levels)
Use the bsp node structure to reconstruct efficient tracing structures that are used for fast visibil...
byte * CompressRouting(byte *dataStart, byte *destStart, int l)
Compress the routing data of a map.
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 RT_WriteCSVFiles(const Routing &routing, const char *baseFilename, const GridBox &box)
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_WIDTH
absolute max
#define CELL_HEIGHT
A cell's height in QUANT sized units.
#define PATHFINDING_HEIGHT
15 max, adjusting above 8 will require a rewrite to the DV code
#define VecToPos(v, p)
Map boundary is +/- MAX_WORLD_WIDTH - to get into the positive area we add the possible max negative ...
QGL_EXTERN GLsizei const GLvoid * data
grid pathfinding and routing
#define RT_IS_BIDIRECTIONAL
static mapTiles_t mapTiles
#define VectorCopy(src, dest)
#define VectorSet(v, x, y, z)