|
UFO: Alien Invasion
|
#include "../../cl_shared.h"#include "../../../shared/parse.h"#include "cp_rank.h"#include "cp_campaign.h"
Go to the source code of this file.
Functions | |
| int | CL_GetRankIdx (const char *rankID) |
| Get the index of the given rankID in ccs.ranks array. | |
| rank_t * | CL_GetRankByIdx (const int index) |
| Returns a rank at an index. | |
| void | CL_ParseRanks (const char *name, const char **text) |
| Parse medals and ranks defined in the medals.ufo file. | |
Variables | |
| static const value_t | rankValues [] |
Returns a rank at an index.
| [in] | index | Index of rank in ccs.ranks |
Definition at line 50 of file cp_rank.cpp.
Referenced by CHAR_UpdateStats(), CP_TEAM_FillBDEFEmployeeList_f(), GAME_CP_CharacterCvars(), HOS_GetRank(), Employee::salary(), TR_CargoList(), and TR_FillEmployees().
| int CL_GetRankIdx | ( | const char * | rankID | ) |
Get the index of the given rankID in ccs.ranks array.
| [in] | rankID | Script id of the rank |
Definition at line 34 of file cp_rank.cpp.
References ccs, i, and Q_streq.
Referenced by E_CreateEmployee().
| void CL_ParseRanks | ( | const char * | name, |
| const char ** | text ) |
Parse medals and ranks defined in the medals.ufo file.
Definition at line 74 of file cp_rank.cpp.
References ccs, cgi, Com_Parse(), cp_campaignPool, E_GetEmployeeType(), ERR_DROP, i, rank_t::id, rank_t::image, rank_t::level, MAX_RANKS, name, rank_t::name, OBJZERO, Q_streq, rankValues, rank_t::shortname, and rank_t::type.
Referenced by CP_ParseScriptFirst().
|
static |
Definition at line 58 of file cp_rank.cpp.
Referenced by CL_ParseRanks().