103 cgi->Com_DPrintf(
DEBUG_CLIENT,
"No base in game: removing supply mission.\n");
125 assert(mission->
ufo);
131 cgi->Com_DPrintf(
DEBUG_CLIENT,
"No base in game: removing supply mission.\n");
156 cgi->Com_DPrintf(
DEBUG_CLIENT,
"No base in game: removing supply mission.\n");
163 cgi->Com_DPrintf(
DEBUG_CLIENT,
"Supply mission can't be spawned without UFO: removing supply mission.\n");
169 cgi->Com_Printf(
"CP_SupplyMissionCreate: Could not add UFO '%s', remove mission\n",
cgi->Com_UFOTypeToShortName(ufoType));
181 switch (mission->
stage) {
203 cgi->Com_Printf(
"CP_SupplyMissionNextStage: Unknown stage: %i, removing mission.\n", mission->
stage);
DateTime class definition.
Share stuff between the different cgame implementations.
Class describing a point of time.
void INT_ChangeIndividualInterest(float interestFactor, interestCategory_t category)
Change individual interest value.
@ INTERESTCATEGORY_BASE_ATTACK
@ INTERESTCATEGORY_SUPPLY
@ INTERESTCATEGORY_INTERCEPT
bool AB_CheckSupplyMissionPossible(void)
Check if a supply mission is possible.
void AB_SupplyBase(alienBase_t *base, bool decreaseStealth)
Supply a base.
alienBase_t * AB_ChooseBaseToSupply(void)
Choose Alien Base that should be supplied.
Header file for single player campaign control.
const cgame_import_t * cgi
static void CP_SupplySetStayAtBase(mission_t *mission)
UFO arrived on new base destination: Supply base.
static void CP_SupplyGoToBase(mission_t *mission)
Go to base position.
static void CP_SupplyMissionCreate(mission_t *mission)
Supply mission begins: UFO arrive on earth.
void CP_SupplyMissionIsFailure(mission_t *mission)
Supply mission is over and is a failure (from an alien point of view): change interest values.
void CP_SupplyMissionNextStage(mission_t *mission)
Determine what action should be performed when a Supply mission stage ends.
void CP_SupplyMissionIsSuccess(mission_t *mission)
Supply mission is over and is a success (from an alien point of view): change interest values.
static void CP_SupplyMissionLeave(mission_t *mission)
Supply mission ends: UFO leave earth.
Campaign mission headers.
void CP_UFORemoveFromGeoscape(mission_t *mission, bool destroyed)
Removes (temporarily or permanently) a UFO from geoscape: make it land and call notify functions.
void CP_MissionRemove(mission_t *mission)
Removes a mission from mission global array.
ufoType_t CP_MissionChooseUFO(const mission_t *mission)
Choose UFO type for a given mission category.
void CP_MissionDisableTimeLimit(mission_t *mission)
Disable time limit for given mission.
Campaign missions headers.
DateTime Date_Random(const DateTime &minFrame, const DateTime &maxFrame)
Return a random relative date which lies between a lower and upper limit.
Campaign geoscape time header.
void UFO_SendToDestination(aircraft_t *ufo, const vec2_t dest)
Make the specified UFO go to destination.
aircraft_t * UFO_AddToGeoscape(ufoType_t ufoType, const vec2_t destination, mission_t *mission)
Add a UFO to geoscape.
void UFO_SetRandomDest(aircraft_t *ufocraft)
Give a random destination to the given UFO, and make him to move there.
void CP_SpreadXVIAtPos(const vec2_t pos)
Spread XVI at a given position.
union mission_t::missionData_t data
#define Vector2Copy(src, dest)