UFO: Alien Invasion
Loading...
Searching...
No Matches
rank_t Struct Reference

Describes a rank that a recruit can gain. More...

#include <cp_rank.h>

Collaboration diagram for rank_t:
Collaboration graph

Data Fields

const char * id
const char * name
const char * shortname
const char * image
int type
int mind
int killedEnemies
int killedOthers
float factor
int level

Detailed Description

Describes a rank that a recruit can gain.

Definition at line 29 of file cp_rank.h.

Field Documentation

◆ factor

float rank_t::factor

a factor that is used to e.g. increase the win probability for auto missions

Definition at line 38 of file cp_rank.h.

◆ id

const char* rank_t::id

Unique identifier as parsed from the ufo files.

Definition at line 30 of file cp_rank.h.

Referenced by CL_ParseRanks().

◆ image

const char* rank_t::image

Image to show in menu

Definition at line 33 of file cp_rank.h.

Referenced by CL_ParseRanks(), and GAME_CP_CharacterCvars().

◆ killedEnemies

int rank_t::killedEnemies

needed amount of enemies killed

Definition at line 36 of file cp_rank.h.

Referenced by CHAR_ShouldUpdateSoldierRank().

◆ killedOthers

int rank_t::killedOthers

needed amount of other actors killed

Definition at line 37 of file cp_rank.h.

Referenced by CHAR_ShouldUpdateSoldierRank().

◆ level

int rank_t::level

rank level for given employee type

Definition at line 40 of file cp_rank.h.

Referenced by CL_ParseRanks(), and Employee::salary().

◆ mind

int rank_t::mind

character mind attribute needed

Definition at line 35 of file cp_rank.h.

Referenced by CHAR_ShouldUpdateSoldierRank().

◆ name

const char* rank_t::name

Rank name (Captain, Squad Leader)

Definition at line 31 of file cp_rank.h.

Referenced by CHAR_UpdateStats(), CL_ParseRanks(), GAME_CP_CharacterCvars(), and HOS_GetRank().

◆ shortname

const char* rank_t::shortname

Rank shortname (Cpt, Sqd Ldr)

Definition at line 32 of file cp_rank.h.

Referenced by CL_ParseRanks(), CP_TEAM_FillBDEFEmployeeList_f(), GAME_CP_CharacterCvars(), TR_CargoList(), and TR_FillEmployees().

◆ type

int rank_t::type

employeeType_t

Definition at line 34 of file cp_rank.h.

Referenced by CHAR_ShouldUpdateSoldierRank(), and CL_ParseRanks().


The documentation for this struct was generated from the following file: