UFO: Alien Invasion
|
#include "../../cl_shared.h"
#include "../../cl_team.h"
#include "../../ui/ui_dataids.h"
#include "cp_campaign.h"
#include "cp_hospital_callbacks.h"
#include "cp_hospital.h"
#include "cp_team.h"
Go to the source code of this file.
Functions | |
static void | HOS_EntryWoundData (const character_t &chr) |
static const char * | HOS_GetRank (const Employee &employee) |
static const char * | HOS_GetInjuryLevelString (const Employee &employee, float injuryLevel) |
static void | HOS_Entry (const Employee &employee) |
static void | HOS_ImplantDetails_f (void) |
static void | HOS_Init_f (void) |
Script command to initialize the hospital menu. More... | |
void | HOS_InitCallbacks (void) |
void | HOS_ShutdownCallbacks (void) |
Variables | |
static const cmdList_t | hospitalCmds [] |
Definition at line 76 of file cp_hospital_callbacks.cpp.
References AIR_IsEmployeeInAircraft(), cgi, Employee::chr, HOS_EntryWoundData(), HOS_GetInjuryLevel(), HOS_GetInjuryLevelString(), HOS_GetRank(), character_s::HP, Employee::isSoldier(), level, character_s::maxHP, aircraft_s::name, character_s::name, and character_s::ucn.
Referenced by HOS_Init_f().
|
static |
Definition at line 33 of file cp_hospital_callbacks.cpp.
References _, teamDef_s::bodyTemplate, cgi, CHRSH_IsTeamDefRobot(), Com_sprintf(), BodyData::id(), lengthof, MAX_VAR, character_s::maxHP, BodyData::name(), BodyData::numBodyParts(), character_s::teamDef, woundInfo_s::treatmentLevel, character_s::ucn, and character_s::wounds.
Referenced by HOS_Entry().
|
static |
Definition at line 59 of file cp_hospital_callbacks.cpp.
References Employee::chr, character_s::HP, and character_s::maxHP.
Referenced by HOS_Entry().
|
static |
Definition at line 49 of file cp_hospital_callbacks.cpp.
References _, Employee::chr, CL_GetRankByIdx(), E_GetEmployeeString(), Employee::getType(), Employee::isSoldier(), rank_s::name, chrScoreGlobal_s::rank, and character_s::score.
Referenced by HOS_Entry().
Definition at line 92 of file cp_hospital_callbacks.cpp.
References cgi, cgame_import_s::Cmd_Argv(), implantDef_s::id, INVSH_GetImplantForObjDef(), and INVSH_GetItemByIDX().
Script command to initialize the hospital menu.
Definition at line 108 of file cp_hospital_callbacks.cpp.
References B_GetBuildingStatus(), B_GetFoundedBaseByIDX(), B_HOSPITAL, cgi, cgame_import_s::Cmd_Argv(), CP_SetEquipContainer(), E_Foreach, HOS_Entry(), MAX_EMPL, and type.
Definition at line 146 of file cp_hospital_callbacks.cpp.
References cgi.
Referenced by CP_AddCampaignCallbackCommands().
Definition at line 151 of file cp_hospital_callbacks.cpp.
References cgi.
Referenced by CP_RemoveCampaignCallbackCommands().
|
static |
Definition at line 140 of file cp_hospital_callbacks.cpp.