UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cp_hospital_callbacks.cpp File Reference
#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 []
 

Function Documentation

static const char* HOS_GetInjuryLevelString ( const Employee employee,
float  injuryLevel 
)
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 const char* HOS_GetRank ( const Employee employee)
static
static void HOS_ImplantDetails_f ( void  )
static
static void HOS_Init_f ( void  )
static

Script command to initialize the hospital menu.

See also
HOS_EmployeeInit_f

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.

void HOS_InitCallbacks ( void  )

Definition at line 146 of file cp_hospital_callbacks.cpp.

References cgi.

Referenced by CP_AddCampaignCallbackCommands().

void HOS_ShutdownCallbacks ( void  )

Definition at line 151 of file cp_hospital_callbacks.cpp.

References cgi.

Referenced by CP_RemoveCampaignCallbackCommands().

Variable Documentation

const cmdList_t hospitalCmds[]
static
Initial value:
= {
{"hosp_init", HOS_Init_f, "Init function for hospital menu"},
{"hosp_implant_details", HOS_ImplantDetails_f, "Print details for an implant"},
{nullptr, nullptr, nullptr}
}
static void HOS_Init_f(void)
Script command to initialize the hospital menu.
static void HOS_ImplantDetails_f(void)

Definition at line 140 of file cp_hospital_callbacks.cpp.