Describes a rank that a recruit can gain. More...
#include <cp_rank.h>
Data Fields | |
char * | id |
char | name [MAX_VAR] |
char | shortname [8] |
char * | image |
int | type |
int | mind |
int | killedEnemies |
int | killedOthers |
float | factor |
Describes a rank that a recruit can gain.
Definition at line 31 of file cp_rank.h.
float rank_s::factor |
a factor that is used to e.g. increase the win probability for auto missions
Definition at line 40 of file cp_rank.h.
Referenced by CP_GetWinProbabilty().
char* rank_s::id |
Unique identifier as parsed from the ufo files.
Definition at line 32 of file cp_rank.h.
Referenced by CL_GetRankIdx(), and CL_ParseRanks().
char* rank_s::image |
Image to show in menu
Definition at line 35 of file cp_rank.h.
Referenced by GAME_CP_CharacterCvars().
needed amount of enemies killed
Definition at line 38 of file cp_rank.h.
Referenced by CL_ShouldUpdateSoldierRank().
needed amount of other actors killed
Definition at line 39 of file cp_rank.h.
Referenced by CL_ShouldUpdateSoldierRank().
int rank_s::mind |
character mind attribute needed
Definition at line 37 of file cp_rank.h.
Referenced by CL_ShouldUpdateSoldierRank().
char rank_s::name[MAX_VAR] |
Rank name (Captain, Squad Leader)
Definition at line 33 of file cp_rank.h.
Referenced by CL_ParseRanks(), CL_UpdateCharacterStats(), GAME_CP_CharacterCvars(), and HOS_UpdateMenu().
char rank_s::shortname[8] |
Rank shortname (Cpt, Sqd Ldr)
Definition at line 34 of file cp_rank.h.
Referenced by CL_ParseRanks(), TR_CargoList(), TR_CheckEmployee(), and TR_TransferSelect().
int rank_s::type |
employeeType_t
Definition at line 36 of file cp_rank.h.
Referenced by CL_ParseRanks(), and CL_ShouldUpdateSoldierRank().