cp_mission_xvi.c 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 dependency graph for cp_mission_xvi.c:

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.
void CP_XVIMissionIsFailure (mission_t *mission)
 XVI Spreading mission is over and is a failure: change interest values.
static void CP_XVIMissionStart (mission_t *mission)
 Start XVI Spreading mission.
int CP_XVIMissionAvailableUFOs (const mission_t const *mission, ufoType_t *ufoTypes)
 Fill an array with available UFOs for XVI Spreading mission type.
void CP_XVIMissionNextStage (mission_t *mission)
 Determine what action should be performed when a XVI Spreading mission stage ends.

Detailed Description

Campaign mission code.

Definition in file cp_mission_xvi.c.


Function Documentation

int CP_XVIMissionAvailableUFOs ( const mission_t const *  mission,
ufoType_t ufoTypes 
)

Fill an array with available UFOs for XVI Spreading mission type.

Parameters:
[in] mission Pointer to the mission we are currently creating.
[out] ufoTypes Array of ufoType_t that may be used for this mission.
Note:
XVI Spreading mission -- Stage 0
Returns:
number of elements written in ufoTypes

Definition at line 90 of file cp_mission_xvi.c.

References UFO_CORRUPTER, UFO_FIGHTER, UFO_SCOUT, and UFO_ShouldAppearOnGeoscape().

Referenced by CP_MissionChooseUFO().

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 50 of file cp_mission_xvi.c.

References CL_ChangeIndividualInterest(), CP_MissionRemove(), f, 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 37 of file cp_mission_xvi.c.

References CL_ChangeIndividualInterest(), CP_MissionRemove(), f, 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] mission Pointer to the mission which stage ended.

Definition at line 106 of file cp_mission_xvi.c.

References Com_Printf(), 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 63 of file cp_mission_xvi.c.

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

Referenced by CP_XVIMissionNextStage().


Generated by  doxygen 1.6.2