UFO: Alien Invasion
routing.cpp File Reference
#include "bsp.h"
#include "../../common/routing.h"
#include "levels.h"
Include dependency graph for routing.cpp:

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. More...
 
static void CheckConnectionsThread (unsigned int unitnum)
 
void DoRouting (void)
 Calculates the routing of a map. More...
 

Variables

static Routing Nmap
 
static ipos3_t wpMins
 world min and max values converted from vec to pos More...
 
static ipos3_t wpMaxs
 

Function Documentation

◆ CheckConnectionsThread()

static void CheckConnectionsThread ( unsigned int  unitnum)
static

◆ CheckUnit()

static int CheckUnit ( unsigned int  unitnum)
static
See also
CheckUnitThread

Definition at line 41 of file routing.cpp.

References mapTiles, Nmap, PATHFINDING_HEIGHT, PATHFINDING_WIDTH, RT_CheckCell(), wpMaxs, and wpMins.

Referenced by CheckUnitThread().

◆ CheckUnitThread()

static void CheckUnitThread ( unsigned int  unitnum)
static

A wrapper for CheckUnit that is thread safe.

See also
DoRouting

Definition at line 72 of file routing.cpp.

References CheckUnit(), and PATHFINDING_HEIGHT.

Referenced by DoRouting().

◆ DoRouting()

Variable Documentation

◆ Nmap

Routing Nmap
static

The routing tables

Definition at line 32 of file routing.cpp.

Referenced by CheckConnectionsThread(), CheckUnit(), and DoRouting().

◆ wpMaxs

ipos3_t wpMaxs
static

Definition at line 35 of file routing.cpp.

Referenced by CheckConnectionsThread(), CheckUnit(), and DoRouting().

◆ wpMins

ipos3_t wpMins
static

world min and max values converted from vec to pos

Definition at line 35 of file routing.cpp.

Referenced by CheckConnectionsThread(), CheckUnit(), and DoRouting().