30 #define BREATHINGAPPARATUS_TECH "rs_alien_breathing"
123 return this->
add(team, alive, dead);
static bool isLifeSupported(const teamDef_t *team)
Returns if storing a specific life form is supported by the containment.
virtual bool add(const teamDef_t *team, int alive, int dead)
Add aliens to the cargo by teamDef.
bool RS_IsResearched_ptr(const technology_t *tech)
Checks whether an item is already researched.
int getDead(void) const
Return number of all dead bodies in the cargo.
void resetCurrentCapacities(void)
Private metod to reset current capacities.
#define BREATHINGAPPARATUS_TECH
bool CHRSH_IsTeamDefAlien(const teamDef_t *const td)
Check if a team definition is alien.
Header for research related stuff.
virtual ~AlienContainment(void)
Destroys AlienContainer with it's internal data.
technology_t * RS_GetTechForTeam(const teamDef_t *team)
Returns technology entry for a team.
static int getCapacityNeedForAlien(const teamDef_t *teamDef, const bool isDead)
Returns the number of capacity needed for an alien in the containment.
capacities_t * aliveCapacity
capacities_t * deadCapacity
void RS_MarkCollected(technology_t *tech)
Marks a give technology as collected.
const cgame_import_t * cgi
This is the technology parsed from research.ufo.
bool CHRSH_IsTeamDefRobot(const teamDef_t *const td)
Check if a team definition is a robot.
technology_t * RS_GetTechByID(const char *id)
return a pointer to the technology identified by given id string
Alien containment class header.
int getAlive(void) const
Return number of all alive aliens in the cargo.
AlienContainment(capacities_t *aliveCapacity, capacities_t *deadCapacity)
Creates and initializes AlienContainment object.
virtual bool add(const teamDef_t *team, int alive, int dead)
Add aliens to the containment by teamDef.
Header file for single player campaign control.
const teamDef_t *IMPORT * Com_GetTeamDefinitionByID(const char *team)
Store capacities in base.