UFO: Alien Invasion
|
#include "test_shared.h"
#include "../common/common.h"
#include "../common/cmodel.h"
#include "../common/grid.h"
#include "../game/g_local.h"
#include "../game/g_edicts.h"
#include "../game/g_utils.h"
#include "../server/server.h"
Go to the source code of this file.
Data Structures | |
class | RoutingTest |
Functions | |
TEST_F (RoutingTest, MapLoading) | |
TEST_F (RoutingTest, Move) | |
TEST_F (RoutingTest, MoveEntities) | |
TEST_F (RoutingTest, Dvec) | |
TEST_F (RoutingTest, TUsForDir) | |
Variables | |
static mapData_t | mapData |
static mapTiles_t | mapTiles |
static const char * | mapName = "test_routing" |
TEST_F | ( | RoutingTest | , |
MapLoading | |||
) |
Definition at line 51 of file test_routing.cpp.
References CM_LoadMap(), FS_CheckFile(), mapName, and MAX_TOKEN_CHARS.
TEST_F | ( | RoutingTest | , |
Move | |||
) |
Definition at line 59 of file test_routing.cpp.
References ACTOR_SIZE_NORMAL, CM_LoadMap(), FS_CheckFile(), Grid_CalcPathing(), Grid_Fall(), Grid_MoveLength(), Grid_MoveStore(), mapName, MAX_ROUTE_TUS, MAX_TOKEN_CHARS, Mem_AllocType, mapData_s::routing, ROUTING_NOT_REACHABLE, TU_MOVE_DIAGONAL, TU_MOVE_STRAIGHT, VecToPos, and VectorSet.
TEST_F | ( | RoutingTest | , |
MoveEntities | |||
) |
Definition at line 200 of file test_routing.cpp.
References ACTOR_SIZE_NORMAL, forbiddenList_s::add(), ET_SOLID, Edict::fieldSize, forbiddenList, Edict::forbiddenListPos, Edict::forbiddenListSize, G_CompleteRecalcRouting(), G_EdictsGetNextInUse(), Grid_CalcPathing(), Grid_MoveLength(), Grid_MoveStore(), serverInstanceGame_s::mapData, mapName, MAX_ROUTE_TUS, Mem_AllocType, forbiddenList_s::reset(), mapData_s::routing, sv, SV_Map(), SV_ShutdownGameProgs(), TU_MOVE_DIAGONAL, TU_MOVE_STRAIGHT, Edict::type, VecToPos, and VectorSet.
TEST_F | ( | RoutingTest | , |
Dvec | |||
) |
Definition at line 297 of file test_routing.cpp.
References getDVdir, getDVflags, getDVz, makeDV, and setDVz.
TEST_F | ( | RoutingTest | , |
TUsForDir | |||
) |
Definition at line 311 of file test_routing.cpp.
References Grid_GetTUsForDirection().
|
static |
Definition at line 47 of file test_routing.cpp.
|
static |
Definition at line 49 of file test_routing.cpp.
Referenced by CL_BattlescapeRadarGenerate_f(), SV_CompleteMapCommand(), and TEST_F().
|
static |
Definition at line 48 of file test_routing.cpp.
Referenced by BeginBSPFile(), CheckConnectionsThread(), CheckUnit(), DoRouting(), LoadBSPFile(), LoadMapFile(), and TR_TestLineSingleTile().