UFO: Alien Invasion
|
Most of the hospital related stuff. More...
Go to the source code of this file.
Macros | |
#define | GET_HP_HEALING(ab) (1 + (ab) * 15/MAX_SKILL) |
Functions | |
static void | HOS_HealWounds (character_t *chr, int healing) |
bool | HOS_HealCharacter (character_t *chr, bool hospital) |
Heals character. More... | |
void | HOS_HospitalRun (void) |
Checks health status of all employees in all bases. More... | |
float | HOS_GetInjuryLevel (const character_t &chr) |
bool | HOS_NeedsHealing (const character_t &chr) |
void | HOS_InitStartup (void) |
Initial stuff for hospitals Bind some of the functions in this file to console-commands that you can call ingame. Called from UI_InitStartup resp. CL_InitLocal. More... | |
bool | HOS_SaveXML (xmlNode_t *p) |
Saving function for hospital related data. More... | |
bool | HOS_LoadXML (xmlNode_t *p) |
Saving function for hospital related data. More... | |
bool | HOS_HospitalAllowed (const base_t *base) |
Returns true if you can enter in the hospital. More... | |
Most of the hospital related stuff.
Definition in file cp_hospital.cpp.
#define GET_HP_HEALING | ( | ab | ) | (1 + (ab) * 15/MAX_SKILL) |
Definition at line 31 of file cp_hospital.cpp.
Referenced by HOS_HealCharacter().
float HOS_GetInjuryLevel | ( | const character_t & | chr | ) |
Definition at line 96 of file cp_hospital.cpp.
References teamDef_s::bodyTemplate, f, i, character_s::maxHP, BodyData::numBodyParts(), character_s::teamDef, woundInfo_s::treatmentLevel, character_s::wounds, and BodyData::woundThreshold().
Referenced by HOS_Entry(), and HOS_NeedsHealing().
bool HOS_HealCharacter | ( | character_t * | chr, |
bool | hospital | ||
) |
Heals character.
[in] | chr | Character data of an employee |
[in] | hospital | True if we call this function for hospital healing (false when autoheal). |
Definition at line 51 of file cp_hospital.cpp.
References ABILITY_POWER, ccs, ccs_s::curCampaign, GET_HP_HEALING, campaign_s::healingRate, HOS_HealWounds(), character_s::HP, INITIAL_HP, character_s::maxHP, character_s::score, and chrScoreGlobal_s::skills.
Referenced by HOS_HospitalRun().
|
static |
Definition at line 33 of file cp_hospital.cpp.
References teamDef_s::bodyTemplate, BodyData::numBodyParts(), character_s::teamDef, woundInfo_s::treatmentLevel, and character_s::wounds.
Referenced by HOS_HealCharacter().
bool HOS_HospitalAllowed | ( | const base_t * | base | ) |
Returns true if you can enter in the hospital.
Definition at line 210 of file cp_hospital.cpp.
References B_GetBuildingStatus(), B_HOSPITAL, and B_IsUnderAttack.
Referenced by B_BaseInit_f(), and B_BuildingOpenAfterClick_f().
Checks health status of all employees in all bases.
Definition at line 82 of file cp_hospital.cpp.
References B_GetBuildingStatus(), B_HOSPITAL, CHRSH_UpdateImplants(), E_Foreach, HOS_HealCharacter(), i, MAX_EMPL, and type.
Referenced by CP_CampaignRun(), and TEST_F().
Initial stuff for hospitals Bind some of the functions in this file to console-commands that you can call ingame. Called from UI_InitStartup resp. CL_InitLocal.
Definition at line 177 of file cp_hospital.cpp.
References cgi.
Referenced by CP_InitStartup().
bool HOS_LoadXML | ( | xmlNode_t * | p | ) |
Saving function for hospital related data.
Definition at line 201 of file cp_hospital.cpp.
Referenced by SAV_Init().
bool HOS_NeedsHealing | ( | const character_t & | chr | ) |
Definition at line 110 of file cp_hospital.cpp.
References HOS_GetInjuryLevel(), character_s::HP, and character_s::maxHP.
Referenced by CP_TEAM_FillEmployeeList_f(), CP_TEAM_FillEquipSoldierList_f(), and E_EmployeeList_f().
bool HOS_SaveXML | ( | xmlNode_t * | p | ) |
Saving function for hospital related data.
Definition at line 190 of file cp_hospital.cpp.
Referenced by SAV_Init().