UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
test_character.cpp File Reference
#include "test_shared.h"
#include "../client/cl_team.h"

Go to the source code of this file.

Data Structures

class  CharacterTest
 

Functions

static character_tGetCharacter (const char *teamDefID="phalanx")
 
static void RunStrengthenImplant (character_t &chr, const implant_t &implant, const objDef_t &od)
 
static void RunEffectForImplant (const fireDef_t &fd, character_t &chr, const implant_t &implant, const objDef_t &od, const itemEffect_t &effect)
 
static void RunImplant (const implantDef_t &implantDef)
 
 TEST_F (CharacterTest, testImplants)
 

Function Documentation

static character_t* GetCharacter ( const char *  teamDefID = "phalanx")
static

Definition at line 42 of file test_character.cpp.

References CL_GenerateCharacter().

Referenced by RunImplant().

static void RunEffectForImplant ( const fireDef_t fd,
character_t chr,
const implant_t implant,
const objDef_t od,
const itemEffect_t effect 
)
static
Todo:
perform tests

Definition at line 55 of file test_character.cpp.

References Com_Printf(), implant_s::def, and implantDef_s::id.

Referenced by RunImplant().

static void RunStrengthenImplant ( character_t chr,
const implant_t implant,
const objDef_t od 
)
static
Todo:
perform tests

Definition at line 49 of file test_character.cpp.

References Com_Printf(), and objDef_s::id.

Referenced by RunImplant().

TEST_F ( CharacterTest  ,
testImplants   
)

Definition at line 100 of file test_character.cpp.

References Com_Printf(), csi, i, csi_s::implants, csi_s::numImplants, and RunImplant().