UFO: Alien Invasion
|
Header file for Alien Containment stuff. More...
Go to the source code of this file.
Functions | |
void | AL_AddAliens (struct aircraft_s *aircraft) |
Puts alien cargo into Alien Containment. More... | |
bool | AL_AddAlienTypeToAircraftCargo (struct aircraft_s *aircraft, const teamDef_t *teamDef, int amount, bool dead) |
Adds an alientype to an aircraft cargo. More... | |
int | AL_CountAll (void) |
Counts live aliens in all bases. More... | |
void | AC_InitStartup (void) |
Defines commands and cvars for the alien containment menu(s). More... | |
Header file for Alien Containment stuff.
Definition in file cp_aliencont.h.
Defines commands and cvars for the alien containment menu(s).
Definition at line 178 of file cp_aliencont.cpp.
References AC_InitCallbacks(), and cgi.
Referenced by CP_InitStartup().
void AL_AddAliens | ( | aircraft_t * | aircraft | ) |
Puts alien cargo into Alien Containment.
Collecting aliens functions.
General Collecting aliens functions
[in] | aircraft | Aircraft transporting cargo to homebase. |
Definition at line 69 of file cp_aliencont.cpp.
References _, AlienContainment::add(), AlienCargo::add(), aircraft_s::alienCargo, base_s::alienContainment, ccs_s::campaignStats, CAP_ALIENS, CAP_Get, CAPTURED_ALIENS, CAPTURED_ALIENS_DIED, stats_s::capturedAliens, ccs, cgi, CP_TriggerEvent(), aircraft_s::homebase, aircraft_s::idx, AlienContainment::isLifeSupported(), stats_s::killedAliens, AlienCargo::list(), LIST_Foreach, MS_AddNewMessage(), MSG_DEATH, and aircraft_s::name.
Referenced by B_DumpAircraftToHomeBase().
bool AL_AddAlienTypeToAircraftCargo | ( | aircraft_t * | aircraft, |
const teamDef_t * | teamDef, | ||
int | amount, | ||
bool | dead | ||
) |
Adds an alientype to an aircraft cargo.
Collecting aliens functions for aircraft
[in] | aircraft | The aircraft that owns the alien cargo to add the alien race to |
[in] | teamDef | The team definition of the alien race to add to the alien cargo container of the given aircraft |
[in] | amount | The amount of aliens of the given race (teamDef ) that should be added to the alien cargo |
[in] | dead | true for cases where the aliens should be added as dead to the alien cargo - false for living aliens |
Definition at line 46 of file cp_aliencont.cpp.
References AlienCargo::add(), and aircraft_s::alienCargo.
Referenced by AL_AddAlienTypeToAircraftCargo_(), and AM_AlienCollect().
Counts live aliens in all bases.
Definition at line 128 of file cp_aliencont.cpp.
References base_s::alienContainment, B_GetNext(), and AlienCargo::getAlive().
Referenced by RS_RequirementsMet().