UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cp_mission_xvi.cpp File Reference

Campaign mission code. More...

#include "../../../cl_shared.h"
#include "../cp_campaign.h"
#include "../cp_missions.h"
#include "../cp_time.h"
#include "../cp_alien_interest.h"
#include "../cp_ufo.h"
#include "cp_mission_recon.h"
#include "cp_mission_harvest.h"
#include "cp_mission_xvi.h"

Go to the source code of this file.

Functions

void CP_XVIMissionIsSuccess (mission_t *mission)
 XVI Spreading mission is over and is a success: change interest values. More...
 
void CP_XVIMissionIsFailure (mission_t *mission)
 XVI Spreading mission is over and is a failure: change interest values. More...
 
static void CP_XVIMissionStart (mission_t *mission)
 Start XVI Spreading mission. More...
 
void CP_XVIMissionNextStage (mission_t *mission)
 Determine what action should be performed when a XVI Spreading mission stage ends. More...
 

Detailed Description

Campaign mission code.

Definition in file cp_mission_xvi.cpp.

Function Documentation

void CP_XVIMissionIsFailure ( mission_t mission)

XVI Spreading mission is over and is a failure: change interest values.

Note
XVI Spreading mission

Definition at line 53 of file cp_mission_xvi.cpp.

References CP_MissionRemove(), f, INT_ChangeIndividualInterest(), INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_INTERCEPT, and INTERESTCATEGORY_TERROR_ATTACK.

Referenced by CP_MissionIsOver().

void CP_XVIMissionIsSuccess ( mission_t mission)

XVI Spreading mission is over and is a success: change interest values.

Note
XVI Spreading mission

Definition at line 40 of file cp_mission_xvi.cpp.

References CP_MissionRemove(), f, INT_ChangeIndividualInterest(), INTERESTCATEGORY_BUILDING, INTERESTCATEGORY_HARVEST, and INTERESTCATEGORY_XVI.

Referenced by CP_MissionIsOver(), and CP_XVIMissionNextStage().

void CP_XVIMissionNextStage ( mission_t mission)

Determine what action should be performed when a XVI Spreading mission stage ends.

Parameters
[in]missionPointer to the mission which stage ended.

Definition at line 90 of file cp_mission_xvi.cpp.

References cgi, CP_HarvestMissionGo(), CP_MissionBegin(), CP_MissionRemove(), CP_ReconMissionLeave(), CP_XVIMissionIsSuccess(), CP_XVIMissionStart(), mission_s::stage, STAGE_COME_FROM_ORBIT, STAGE_MISSION_GOTO, STAGE_NOT_ACTIVE, STAGE_RETURN_TO_ORBIT, and STAGE_SPREAD_XVI.

Referenced by CP_MissionStageEnd().

static void CP_XVIMissionStart ( mission_t mission)
static

Start XVI Spreading mission.

Note
XVI Spreading mission – Stage 2

Definition at line 66 of file cp_mission_xvi.cpp.

References ccs, CP_MissionAddToGeoscape(), CP_UFORemoveFromGeoscape(), ccs_s::date, Date_Add(), Date_Random(), mission_s::finalDate, mission_s::stage, STAGE_SPREAD_XVI, and mission_s::ufo.

Referenced by CP_XVIMissionNextStage().