|
UFO: Alien Invasion
|
Campaign mission. More...
#include "../../../DateTime.h"#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. | |
| void | CP_SupplyMissionIsFailure (mission_t *mission) |
| Supply mission is over and is a failure (from an alien point of view): change interest values. | |
| static void | CP_SupplyMissionLeave (mission_t *mission) |
| Supply mission ends: UFO leave earth. | |
| 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_SupplyMissionNextStage (mission_t *mission) |
| Determine what action should be performed when a Supply mission stage ends. | |
Campaign mission.
Definition in file cp_mission_supply.cpp.
Go to base position.
| [in,out] | mission | Pointer to the mission |
Definition at line 121 of file cp_mission_supply.cpp.
References AB_CheckSupplyMissionPossible(), AB_ChooseBaseToSupply(), mission_t::missionData_t::alienBase, cgi, CP_MissionRemove(), mission_t::data, DEBUG_CLIENT, alienBase_t::pos, mission_t::pos, mission_t::stage, STAGE_MISSION_GOTO, mission_t::ufo, UFO_SendToDestination(), and Vector2Copy.
Referenced by CP_SupplyMissionNextStage().
Supply mission begins: UFO arrive on earth.
Definition at line 148 of file cp_mission_supply.cpp.
References AB_CheckSupplyMissionPossible(), cgi, CP_MissionChooseUFO(), CP_MissionDisableTimeLimit(), CP_MissionRemove(), DEBUG_CLIENT, mission_t::stage, STAGE_COME_FROM_ORBIT, mission_t::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 58 of file cp_mission_supply.cpp.
References CP_MissionRemove(), 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 41 of file cp_mission_supply.cpp.
References mission_t::missionData_t::alienBase, CP_MissionRemove(), CP_SpreadXVIAtPos(), mission_t::data, INT_ChangeIndividualInterest(), INTERESTCATEGORY_SUPPLY, and alienBase_t::pos.
Referenced by CP_MissionIsOver(), and CP_SupplyMissionNextStage().
Supply mission ends: UFO leave earth.
Definition at line 71 of file cp_mission_supply.cpp.
References mission_t::missionData_t::alienBase, CP_MissionDisableTimeLimit(), mission_t::data, aircraft_t::landed, mission_t::stage, STAGE_RETURN_TO_ORBIT, mission_t::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 179 of file cp_mission_supply.cpp.
References cgi, CP_MissionRemove(), CP_SupplyGoToBase(), CP_SupplyMissionCreate(), CP_SupplyMissionIsSuccess(), CP_SupplyMissionLeave(), CP_SupplySetStayAtBase(), mission_t::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 90 of file cp_mission_supply.cpp.
References AB_CheckSupplyMissionPossible(), AB_SupplyBase(), mission_t::missionData_t::alienBase, ccs, cgi, CP_MissionRemove(), CP_UFORemoveFromGeoscape(), mission_t::data, Date_Random(), DEBUG_CLIENT, aircraft_t::detected, mission_t::finalDate, mission_t::stage, STAGE_SUPPLY, and mission_t::ufo.
Referenced by CP_SupplyMissionNextStage().