UFO: Alien Invasion
Loading...
Searching...
No Matches
campaign_t Struct Reference

#include <cp_campaign.h>

Collaboration diagram for campaign_t:
Collaboration graph

Data Fields

int idx
char id [MAX_VAR]
char name [MAX_VAR]
bool defaultCampaign
int team
char researched [MAX_VAR]
char soldierEquipment [MAX_VAR]
char equipment [MAX_VAR]
char market [MAX_VAR]
char asymptoticMarket [MAX_VAR]
const equipDef_tmarketDef
const equipDef_tasymptoticMarketDef
char text [MAX_VAR]
char map [MAX_VAR]
int soldiers
int scientists
int workers
int pilots
int ugvs
int credits
int num
signed int difficulty
float minhappiness
int negativeCreditsUntilLost
int maxAllowedXVIRateUntilLost
bool visible
class DateTime date
int basecost
char firstBaseTemplate [MAX_VAR]
bool finished
const campaignEvents_tevents
salary_t salaries
float produceRate
float researchRate
float healingRate
float liquidationRate
float componentRate
int minMissions
int maxMissions
float ufoReductionRate
float employeeRate
int initialInterest
int alienBaseInterest
linkedList_tinitialCraft

Detailed Description

campaign definition

Definition at line 164 of file cp_campaign.h.

Field Documentation

◆ alienBaseInterest

int campaign_t::alienBaseInterest

the alien interest level at which aliens begin trying to build bases.

Definition at line 209 of file cp_campaign.h.

Referenced by CP_ParseCampaign().

◆ asymptoticMarket

char campaign_t::asymptoticMarket[MAX_VAR]

name of the market list containing items on market at the end of the game

Definition at line 174 of file cp_campaign.h.

Referenced by CP_ParseCampaignData().

◆ asymptoticMarketDef

const equipDef_t* campaign_t::asymptoticMarketDef

market definition for this campaign (how many items on the market) containing finale items

Definition at line 176 of file cp_campaign.h.

Referenced by CP_CampaignRunMarket(), and CP_ParseCampaignData().

◆ basecost

int campaign_t::basecost

base building cost for empty base

Definition at line 192 of file cp_campaign.h.

Referenced by B_BuildBase_f(), and CP_CheckLostCondition().

◆ componentRate

float campaign_t::componentRate

Component cost percentage to build an object in the workshop

Definition at line 201 of file cp_campaign.h.

Referenced by CP_ParseCampaign().

◆ credits

int campaign_t::credits

start with x credits

Definition at line 184 of file cp_campaign.h.

Referenced by CP_CampaignInit(), and GAME_CP_CampaignDescription_f().

◆ date

class DateTime campaign_t::date

starting date for this campaign

Definition at line 191 of file cp_campaign.h.

Referenced by CP_ParseCampaign(), and CP_ReadCampaignData().

◆ defaultCampaign

bool campaign_t::defaultCampaign

if this is the default campaign

Definition at line 168 of file cp_campaign.h.

Referenced by GAME_CP_GetCampaigns_f().

◆ difficulty

signed int campaign_t::difficulty

◆ employeeRate

float campaign_t::employeeRate

Easier difficulties could offer more monthly recruits and harder difficulties less

Definition at line 207 of file cp_campaign.h.

Referenced by CP_ParseCampaign().

◆ equipment

char campaign_t::equipment[MAX_VAR]

name of the equipment list to use on campaign start

Definition at line 172 of file cp_campaign.h.

Referenced by B_SetUpFirstBase().

◆ events

const campaignEvents_t* campaign_t::events

Definition at line 195 of file cp_campaign.h.

Referenced by CP_CheckCampaignEvents(), and CP_ParseCampaign().

◆ finished

bool campaign_t::finished

Definition at line 194 of file cp_campaign.h.

◆ firstBaseTemplate

char campaign_t::firstBaseTemplate[MAX_VAR]

template to use for setting up the first base

Definition at line 193 of file cp_campaign.h.

Referenced by B_Build().

◆ healingRate

float campaign_t::healingRate

the hospital healing rate

Definition at line 199 of file cp_campaign.h.

Referenced by CP_ParseCampaign().

◆ id

char campaign_t::id[MAX_VAR]

id of the campaign

Definition at line 166 of file cp_campaign.h.

Referenced by BS_InitMarket(), CP_GetCampaign(), CP_ParseCampaign(), and GAME_CP_GetCampaigns_f().

◆ idx

int campaign_t::idx

own index in global campaign array

Definition at line 165 of file cp_campaign.h.

Referenced by CP_ParseCampaign().

◆ initialCraft

linkedList_t* campaign_t::initialCraft

List of aircraft the player starts the campaign with

Definition at line 210 of file cp_campaign.h.

Referenced by B_SetUpFirstBase(), and CP_ParseCampaign().

◆ initialInterest

int campaign_t::initialInterest

Definition at line 208 of file cp_campaign.h.

Referenced by CP_ParseCampaign().

◆ liquidationRate

float campaign_t::liquidationRate

amount of original price of a building returned when it's removed from base due to recycling

Definition at line 200 of file cp_campaign.h.

Referenced by CP_ParseCampaign().

◆ map

char campaign_t::map[MAX_VAR]

geoscape map

Definition at line 178 of file cp_campaign.h.

Referenced by CP_CampaignInit(), CP_LoadXML(), CampaignTest::SetUp(), and TEST_F().

◆ market

char campaign_t::market[MAX_VAR]

name of the market list containing initial items on market

Definition at line 173 of file cp_campaign.h.

Referenced by CP_ParseCampaignData().

◆ marketDef

const equipDef_t* campaign_t::marketDef

market definition for this campaign (how many items on the market) containing initial items

Definition at line 175 of file cp_campaign.h.

Referenced by BS_InitMarket(), CP_CampaignRunMarket(), and CP_ParseCampaignData().

◆ maxAllowedXVIRateUntilLost

int campaign_t::maxAllowedXVIRateUntilLost

0 - 100 - the average rate of XVI over all nations before you've lost the game

Definition at line 189 of file cp_campaign.h.

Referenced by CP_CheckLostCondition(), and STATS_Update_f().

◆ maxMissions

int campaign_t::maxMissions

Maximum Missions per Interest Level

Definition at line 203 of file cp_campaign.h.

Referenced by CP_ParseCampaign().

◆ minhappiness

float campaign_t::minhappiness

minimum value of mean happiness before the game is lost

Definition at line 187 of file cp_campaign.h.

Referenced by CP_BuildBaseGovernmentLeave(), CP_CampaignRun(), CP_CheckLostCondition(), CP_MissionEnd(), and GAME_CP_CampaignDescription_f().

◆ minMissions

int campaign_t::minMissions

Minimum Missions per Interest Level

Definition at line 202 of file cp_campaign.h.

Referenced by CP_ParseCampaign().

◆ name

char campaign_t::name[MAX_VAR]

name of the campaign

Definition at line 167 of file cp_campaign.h.

Referenced by GAME_CP_CampaignDescription_f(), and GAME_CP_GetCampaigns_f().

◆ negativeCreditsUntilLost

int campaign_t::negativeCreditsUntilLost

bankrupt - negative credits until you've lost the game

Definition at line 188 of file cp_campaign.h.

Referenced by CP_CheckLostCondition(), GAME_CP_CampaignDescription_f(), and STATS_Update_f().

◆ num

int campaign_t::num

Definition at line 185 of file cp_campaign.h.

◆ pilots

int campaign_t::pilots

start with x pilots

Definition at line 182 of file cp_campaign.h.

Referenced by E_InitialEmployees(), and GAME_CP_CampaignDescription_f().

◆ produceRate

float campaign_t::produceRate

higher number = faster production

Definition at line 197 of file cp_campaign.h.

Referenced by CP_ParseCampaign().

◆ researched

char campaign_t::researched[MAX_VAR]

name of the researched tech list to use on campaign start

Definition at line 170 of file cp_campaign.h.

Referenced by CP_ParseCampaign(), CP_ParseResearchableCampaignStates(), CP_ParseResearchedCampaignItems(), and RS_InitTree().

◆ researchRate

float campaign_t::researchRate

specifies the number of research hours that a single scientist produces in a single hour of game time

Definition at line 198 of file cp_campaign.h.

Referenced by CP_ParseCampaign().

◆ salaries

salary_t campaign_t::salaries

◆ scientists

int campaign_t::scientists

start with x scientists

Definition at line 180 of file cp_campaign.h.

Referenced by E_InitialEmployees(), and GAME_CP_CampaignDescription_f().

◆ soldierEquipment

char campaign_t::soldierEquipment[MAX_VAR]

name of the equipment list that is used to equip soldiers on crafts that are added to the first base

Definition at line 171 of file cp_campaign.h.

Referenced by B_SetUpFirstBase().

◆ soldiers

int campaign_t::soldiers

start with x soldiers

Definition at line 179 of file cp_campaign.h.

Referenced by E_InitialEmployees(), and GAME_CP_CampaignDescription_f().

◆ team

int campaign_t::team

what team can play this campaign

Definition at line 169 of file cp_campaign.h.

Referenced by CP_ParseCampaign(), and GAME_CP_CampaignDescription_f().

◆ text

char campaign_t::text[MAX_VAR]

placeholder for gettext stuff

Definition at line 177 of file cp_campaign.h.

Referenced by GAME_CP_CampaignDescription_f().

◆ ufoReductionRate

float campaign_t::ufoReductionRate

is used in the equation which spawns UFOs to determine the probability that a UFO will not be spawned. It works like this: the game says: 10 UFOs can be spawned in this cycle. For each UFO it picks a number between 0.0 and 1.0. If the number is higher than ufoReductionRate, it is spawned. Otherwise it is not. So higher numbers lead to fewer UFOs.

Definition at line 204 of file cp_campaign.h.

Referenced by CP_ParseCampaign().

◆ ugvs

int campaign_t::ugvs

start with x ugvs (robots)

Definition at line 183 of file cp_campaign.h.

Referenced by E_InitialEmployees().

◆ visible

bool campaign_t::visible

visible in campaign menu?

Definition at line 190 of file cp_campaign.h.

Referenced by GAME_CP_GetCampaigns_f().

◆ workers

int campaign_t::workers

start with x workers

Definition at line 181 of file cp_campaign.h.

Referenced by E_InitialEmployees(), and GAME_CP_CampaignDescription_f().


The documentation for this struct was generated from the following file: