UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cp_hospital.h File Reference

Header file for hospital related stuff. More...

Go to the source code of this file.

Functions

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_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)
 

Detailed Description

Header file for hospital related stuff.

Definition in file cp_hospital.h.

Function Documentation

bool HOS_HealCharacter ( character_t chr,
bool  hospital 
)

Heals character.

Parameters
[in]chrCharacter data of an employee
[in]hospitalTrue if we call this function for hospital healing (false when autoheal).
See also
HOS_HealEmployee
Returns
true if soldiers becomes healed - false otherwise

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().

void HOS_HospitalRun ( void  )

Checks health status of all employees in all bases.

See also
CP_CampaignRun
Note
Called every day.

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().

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.

Definition at line 177 of file cp_hospital.cpp.

References cgi.

Referenced by CP_InitStartup().

bool HOS_NeedsHealing ( const character_t chr)