UFO: Alien Invasion
test_character.cpp File Reference
#include "test_shared.h"
#include "../client/cl_team.h"
Include dependency graph for test_character.cpp:

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

◆ GetCharacter()

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

Definition at line 42 of file test_character.cpp.

References CL_GenerateCharacter().

Referenced by RunImplant().

◆ RunEffectForImplant()

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_t::def, and implantDef_t::id.

Referenced by RunImplant().

◆ RunImplant()

◆ RunStrengthenImplant()

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_t::id.

Referenced by RunImplant().

◆ TEST_F()

TEST_F ( CharacterTest  ,
testImplants   
)

Definition at line 100 of file test_character.cpp.

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