UFO: Alien Invasion
|
Test cases for the mapdef code and loading the related maps. More...
#include "test_shared.h"
#include "../client/client.h"
#include "../client/cl_shared.h"
#include "../client/cl_lua.h"
#include "../client/renderer/r_state.h"
#include "../client/ui/ui_main.h"
#include "../common/routing.h"
#include "../server/server.h"
#include "../server/sv_rma.h"
Go to the source code of this file.
Data Structures | |
class | MapDefTest |
Macros | |
#define | RMA_HIGHEST_SUPPORTED_SEED 50 |
Functions | |
TEST_F (MapDefTest, MapDefsSingleplayer) | |
This test cycles through the list of map definitions found in the maps.ufo script and tries to load (and build in case of RMA) each map once (with a random seed). More... | |
TEST_F (MapDefTest, MapDefsMultiplayer) | |
Test cases for the mapdef code and loading the related maps.
Definition in file test_mapdef.cpp.
#define RMA_HIGHEST_SUPPORTED_SEED 50 |
Definition at line 36 of file test_mapdef.cpp.
TEST_F | ( | MapDefTest | , |
MapDefsSingleplayer | |||
) |
This test cycles through the list of map definitions found in the maps.ufo script and tries to load (and build in case of RMA) each map once (with a random seed).
Definition at line 72 of file test_mapdef.cpp.
References Com_Printf(), csi, mapDef_s::id, int(), LIST_Foreach, LIST_IsEmpty(), MapDef_Foreach, mapDef_s::mapTheme, csi_s::numMDs, mapDef_s::params, Q_streq, SV_Map(), SV_ShutdownGameProgs(), TEST_ExistsProperty(), TEST_GetLongProperty(), and TEST_GetStringProperty().
TEST_F | ( | MapDefTest | , |
MapDefsMultiplayer | |||
) |
Definition at line 111 of file test_mapdef.cpp.
References Com_Printf(), csi, Cvar_Set(), mapDef_s::gameTypes, serverInstanceStatic_s::ge, mapDef_s::id, Info_SetValueForKey(), int(), LIST_ContainsString(), LIST_Foreach, LIST_IsEmpty(), MapDef_ForeachCondition, mapDef_s::mapTheme, MAX_INFO_STRING, mapDef_s::multiplayer, csi_s::numMDs, mapDef_s::params, PLAYER_NUM, Q_streq, SV_Map(), SV_ShutdownGameProgs(), svs, TEST_ExistsProperty(), TEST_GetLongProperty(), and TEST_GetStringProperty().