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

Campaign mission headers. More...

Go to the source code of this file.

Functions

void CP_HarvestMissionNextStage (struct mission_s *mission)
 Determine what action should be performed when a Harvesting mission stage ends. More...
 
void CP_HarvestMissionIsFailure (struct mission_s *mission)
 Harvesting mission is over and is a failure: change interest values. More...
 
void CP_HarvestMissionGo (struct mission_s *mission)
 Set Harvest mission, and go to mission pos. More...
 

Detailed Description

Campaign mission headers.

Definition in file cp_mission_harvest.h.

Function Documentation

void CP_HarvestMissionGo ( mission_t mission)

Set Harvest mission, and go to mission pos.

Note
Harvesting attack mission – Stage 1
Todo:
Remove me when CP_XVIMissionGo will be implemented This function should take a location close to an XVI infection point see gameplay proposal on wiki

Definition at line 134 of file cp_mission_harvest.cpp.

References ccs, cgi, CP_ChooseMap(), CP_ChooseNation(), CP_GetRandomPosOnGeoscapeWithParameters(), CP_MissionDisableTimeLimit(), CP_MissionRemove(), mapDef_s::cultures, ccs_s::date, mission_s::finalDate, GEO_PositionCloseToBase(), mission_s::mapDef, MAX_POS_LOOP, mapDef_s::populations, mission_s::pos, mission_s::posAssigned, mission_s::stage, STAGE_MISSION_GOTO, mapDef_s::terrains, mission_s::ufo, and UFO_SendToDestination().

Referenced by CP_HarvestMissionNextStage(), and CP_XVIMissionNextStage().

void CP_HarvestMissionIsFailure ( mission_t mission)

Harvesting mission is over and is a failure: change interest values.

Note
Harvesting mission

Definition at line 56 of file cp_mission_harvest.cpp.

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

Referenced by CP_MissionIsOver().

void CP_HarvestMissionNextStage ( mission_t mission)

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

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

Definition at line 176 of file cp_mission_harvest.cpp.

References cgi, CP_HarvestMissionGo(), CP_HarvestMissionIsSuccess(), CP_HarvestMissionStart(), CP_MissionBegin(), CP_MissionRemove(), CP_ReconMissionLeave(), mission_s::stage, STAGE_COME_FROM_ORBIT, STAGE_HARVEST, STAGE_MISSION_GOTO, STAGE_NOT_ACTIVE, and STAGE_RETURN_TO_ORBIT.

Referenced by CP_MissionStageEnd().