UFO: Alien Invasion
Loading...
Searching...
No Matches
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()

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

Definition at line 42 of file test_character.cpp.

References CL_GenerateCharacter().

Referenced by RunImplant().

◆ RunEffectForImplant()

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()

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, and RunImplant().