UFO: Alien Invasion
|
Campaign mission. More...
#include "../../../cl_shared.h"
#include "../cp_campaign.h"
#include "../cp_alienbase.h"
#include "../cp_ufo.h"
#include "../cp_missions.h"
#include "../cp_time.h"
#include "../cp_xvi.h"
#include "../cp_alien_interest.h"
#include "cp_mission_supply.h"
Go to the source code of this file.
Functions | |
void | CP_SupplyMissionIsSuccess (mission_t *mission) |
Supply mission is over and is a success (from an alien point of view): change interest values. More... | |
void | CP_SupplyMissionIsFailure (mission_t *mission) |
Supply mission is over and is a failure (from an alien point of view): change interest values. More... | |
static void | CP_SupplyMissionLeave (mission_t *mission) |
Supply mission ends: UFO leave earth. More... | |
static void | CP_SupplySetStayAtBase (mission_t *mission) |
UFO arrived on new base destination: Supply base. More... | |
static void | CP_SupplyGoToBase (mission_t *mission) |
Go to base position. More... | |
static void | CP_SupplyMissionCreate (mission_t *mission) |
Supply mission begins: UFO arrive on earth. More... | |
void | CP_SupplyMissionNextStage (mission_t *mission) |
Determine what action should be performed when a Supply mission stage ends. More... | |
Campaign mission.
Definition in file cp_mission_supply.cpp.
Go to base position.
[in,out] | mission | Pointer to the mission |
Definition at line 120 of file cp_mission_supply.cpp.
References AB_CheckSupplyMissionPossible(), AB_ChooseBaseToSupply(), mission_s::missionData_t::alienBase, cgi, CP_MissionRemove(), mission_s::data, DEBUG_CLIENT, alienBase_s::pos, mission_s::pos, mission_s::stage, STAGE_MISSION_GOTO, mission_s::ufo, UFO_SendToDestination(), and Vector2Copy.
Referenced by CP_SupplyMissionNextStage().
Supply mission begins: UFO arrive on earth.
Definition at line 147 of file cp_mission_supply.cpp.
References AB_CheckSupplyMissionPossible(), cgi, cgame_import_s::Com_UFOTypeToShortName(), CP_MissionChooseUFO(), CP_MissionDisableTimeLimit(), CP_MissionRemove(), DEBUG_CLIENT, mission_s::stage, STAGE_COME_FROM_ORBIT, mission_s::ufo, UFO_AddToGeoscape(), and UFO_NONE.
Referenced by CP_SupplyMissionNextStage().
Supply mission is over and is a failure (from an alien point of view): change interest values.
Definition at line 57 of file cp_mission_supply.cpp.
References CP_MissionRemove(), f, INT_ChangeIndividualInterest(), INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_INTERCEPT, and INTERESTCATEGORY_SUPPLY.
Referenced by CP_MissionIsOver().
Supply mission is over and is a success (from an alien point of view): change interest values.
Definition at line 40 of file cp_mission_supply.cpp.
References mission_s::missionData_t::alienBase, CP_MissionRemove(), CP_SpreadXVIAtPos(), mission_s::data, f, INT_ChangeIndividualInterest(), INTERESTCATEGORY_SUPPLY, and alienBase_s::pos.
Referenced by CP_MissionIsOver(), and CP_SupplyMissionNextStage().
Supply mission ends: UFO leave earth.
Definition at line 70 of file cp_mission_supply.cpp.
References mission_s::missionData_t::alienBase, CP_MissionDisableTimeLimit(), mission_s::data, aircraft_s::landed, mission_s::stage, STAGE_RETURN_TO_ORBIT, mission_s::ufo, and UFO_SetRandomDest().
Referenced by CP_SupplyMissionNextStage().
Determine what action should be performed when a Supply mission stage ends.
[in] | mission | Pointer to the mission which stage ended. |
Definition at line 178 of file cp_mission_supply.cpp.
References cgi, CP_MissionRemove(), CP_SupplyGoToBase(), CP_SupplyMissionCreate(), CP_SupplyMissionIsSuccess(), CP_SupplyMissionLeave(), CP_SupplySetStayAtBase(), mission_s::stage, STAGE_COME_FROM_ORBIT, STAGE_MISSION_GOTO, STAGE_NOT_ACTIVE, STAGE_RETURN_TO_ORBIT, and STAGE_SUPPLY.
Referenced by CP_MissionStageEnd().
UFO arrived on new base destination: Supply base.
[in,out] | mission | Pointer to the mission |
< Max time needed to supply base
Definition at line 89 of file cp_mission_supply.cpp.
References AB_CheckSupplyMissionPossible(), AB_SupplyBase(), mission_s::missionData_t::alienBase, ccs, cgi, CP_MissionRemove(), CP_UFORemoveFromGeoscape(), mission_s::data, ccs_s::date, Date_Add(), Date_Random(), DEBUG_CLIENT, aircraft_s::detected, mission_s::finalDate, mission_s::stage, STAGE_SUPPLY, and mission_s::ufo.
Referenced by CP_SupplyMissionNextStage().