UFO: Alien Invasion
|
#include <cp_campaign.h>
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_t * | marketDef |
const equipDef_t * | asymptoticMarketDef |
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 |
date_t | date |
int | basecost |
char | firstBaseTemplate [MAX_VAR] |
bool | finished |
const campaignEvents_t * | events |
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_t * | initialCraft |
campaign definition
Definition at line 163 of file cp_campaign.h.
int campaign_s::alienBaseInterest |
the alien interest level at which aliens begin trying to build bases.
Definition at line 208 of file cp_campaign.h.
Referenced by CP_BasemissionIsSubvertingGovernmentMission(), and CP_ParseCampaign().
char campaign_s::asymptoticMarket[MAX_VAR] |
name of the market list containing items on market at the end of the game
Definition at line 173 of file cp_campaign.h.
Referenced by CP_ParseCampaignData().
const equipDef_t* campaign_s::asymptoticMarketDef |
market definition for this campaign (how many items on the market) containing finale items
Definition at line 175 of file cp_campaign.h.
Referenced by CP_CampaignRunMarket(), and CP_ParseCampaignData().
int campaign_s::basecost |
base building cost for empty base
Definition at line 191 of file cp_campaign.h.
Referenced by B_BuildBase_f(), B_InitCallbacks(), CP_CheckLostCondition(), and INS_FillTypes_f().
float campaign_s::componentRate |
Component cost percentage to build an object in the workshop
Definition at line 200 of file cp_campaign.h.
Referenced by CP_ParseCampaign(), and PR_GetPrice().
int campaign_s::credits |
start with x credits
Definition at line 183 of file cp_campaign.h.
Referenced by CP_CampaignInit(), and GAME_CP_CampaignDescription_f().
date_t campaign_s::date |
starting date for this campaign
Definition at line 190 of file cp_campaign.h.
Referenced by CP_CheckTriggerEvent(), and CP_ReadCampaignData().
bool campaign_s::defaultCampaign |
if this is the default campaign
Definition at line 167 of file cp_campaign.h.
Referenced by GAME_CP_GetCampaigns_f().
signed int campaign_s::difficulty |
difficulty level -4 - 4
Definition at line 185 of file cp_campaign.h.
Referenced by AM_FillTeamFromAircraft(), BATTLE_Start(), CP_CheckTriggerEvent(), CP_ParseCampaign(), CP_StartXVISpreading_f(), GAME_CP_CampaignDescription_f(), and INT_IncreaseAlienInterest().
float campaign_s::employeeRate |
Easier difficulties could offer more monthly recruits and harder difficulties less
Definition at line 206 of file cp_campaign.h.
Referenced by CP_ParseCampaign(), and NAT_HandleBudget().
char campaign_s::equipment[MAX_VAR] |
name of the equipment list to use on campaign start
Definition at line 171 of file cp_campaign.h.
Referenced by B_SetUpFirstBase().
const campaignEvents_t* campaign_s::events |
Definition at line 194 of file cp_campaign.h.
Referenced by CP_CheckCampaignEvents(), and CP_ParseCampaign().
bool campaign_s::finished |
Definition at line 193 of file cp_campaign.h.
char campaign_s::firstBaseTemplate[MAX_VAR] |
template to use for setting up the first base
Definition at line 192 of file cp_campaign.h.
Referenced by B_Build().
float campaign_s::healingRate |
the hospital healing rate
Definition at line 198 of file cp_campaign.h.
Referenced by CP_ParseCampaign(), and HOS_HealCharacter().
char campaign_s::id[MAX_VAR] |
id of the campaign
Definition at line 165 of file cp_campaign.h.
Referenced by BS_InitMarket(), CP_GetCampaign(), CP_ParseCampaign(), CP_SaveXML(), and GAME_CP_GetCampaigns_f().
int campaign_s::idx |
own index in global campaign array
Definition at line 164 of file cp_campaign.h.
Referenced by CP_ParseCampaign().
linkedList_t* campaign_s::initialCraft |
List of aircraft the player starts the campaign with
Definition at line 209 of file cp_campaign.h.
Referenced by B_SetUpFirstBase(), and CP_ParseCampaign().
int campaign_s::initialInterest |
Definition at line 207 of file cp_campaign.h.
Referenced by CP_ParseCampaign(), CP_SpawnNewMissions(), and INT_ResetAlienInterest().
float campaign_s::liquidationRate |
amount of original price of a building returned when it's removed from base due to recycling
Definition at line 199 of file cp_campaign.h.
Referenced by B_BuildingDestroy(), and CP_ParseCampaign().
char campaign_s::map[MAX_VAR] |
geoscape map
Definition at line 177 of file cp_campaign.h.
Referenced by CP_CampaignInit(), CP_LoadXML(), GEO_Draw(), CampaignTest::SetUp(), and TEST_F().
char campaign_s::market[MAX_VAR] |
name of the market list containing initial items on market
Definition at line 172 of file cp_campaign.h.
Referenced by CP_ParseCampaignData().
const equipDef_t* campaign_s::marketDef |
market definition for this campaign (how many items on the market) containing initial items
Definition at line 174 of file cp_campaign.h.
Referenced by BS_InitMarket(), CP_CampaignRunMarket(), and CP_ParseCampaignData().
int campaign_s::maxAllowedXVIRateUntilLost |
0 - 100 - the average rate of XVI over all nations before you've lost the game
Definition at line 188 of file cp_campaign.h.
Referenced by CP_CheckLostCondition(), CP_CheckTriggerEvent(), and STATS_Update_f().
int campaign_s::maxMissions |
Maximum Missions per Interest Level
Definition at line 202 of file cp_campaign.h.
Referenced by CP_ParseCampaign(), and CP_SpawnNewMissions().
float campaign_s::minhappiness |
minimum value of mean happiness before the game is lost
Definition at line 186 of file cp_campaign.h.
Referenced by CP_BuildBaseGovernmentLeave(), CP_CampaignRun(), CP_ChangeNationHappiness_f(), CP_CheckLostCondition(), CP_CheckTriggerEvent(), CP_MissionEnd(), GAME_CP_CampaignDescription_f(), and UR_DialogStartSell_f().
int campaign_s::minMissions |
Minimum Missions per Interest Level
Definition at line 201 of file cp_campaign.h.
Referenced by CP_ParseCampaign(), and CP_SpawnNewMissions().
char campaign_s::name[MAX_VAR] |
name of the campaign
Definition at line 166 of file cp_campaign.h.
Referenced by GAME_CP_CampaignDescription_f(), and GAME_CP_GetCampaigns_f().
int campaign_s::negativeCreditsUntilLost |
bankrupt - negative credits until you've lost the game
Definition at line 187 of file cp_campaign.h.
Referenced by CP_CheckLostCondition(), GAME_CP_CampaignDescription_f(), and STATS_Update_f().
int campaign_s::num |
Definition at line 184 of file cp_campaign.h.
int campaign_s::pilots |
start with x pilots
Definition at line 181 of file cp_campaign.h.
Referenced by E_InitialEmployees(), and GAME_CP_CampaignDescription_f().
float campaign_s::produceRate |
higher number = faster production
Definition at line 196 of file cp_campaign.h.
Referenced by CP_ParseCampaign(), and PR_CalculateTotalFrames().
char campaign_s::researched[MAX_VAR] |
name of the researched tech list to use on campaign start
Definition at line 169 of file cp_campaign.h.
Referenced by CP_ParseCampaign(), CP_ParseResearchableCampaignStates(), CP_ParseResearchedCampaignItems(), and RS_InitTree().
float campaign_s::researchRate |
specifies the number of research hours that a single scientist produces in a single hour of game time
Definition at line 197 of file cp_campaign.h.
Referenced by CP_ParseCampaign(), RS_ResearchRun(), and TEST_F().
salary_t campaign_s::salaries |
Definition at line 195 of file cp_campaign.h.
Referenced by CP_ParseCampaign(), NAT_HandleBudget(), Employee::salary(), and STAT_GetExpenses_f().
int campaign_s::scientists |
start with x scientists
Definition at line 179 of file cp_campaign.h.
Referenced by E_InitialEmployees(), and GAME_CP_CampaignDescription_f().
char campaign_s::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 170 of file cp_campaign.h.
Referenced by B_SetUpFirstBase().
int campaign_s::soldiers |
start with x soldiers
Definition at line 178 of file cp_campaign.h.
Referenced by E_InitialEmployees(), and GAME_CP_CampaignDescription_f().
int campaign_s::team |
what team can play this campaign
Definition at line 168 of file cp_campaign.h.
Referenced by CP_ParseCampaign(), GAME_CP_CampaignDescription_f(), and GAME_CP_GetTeamDef().
char campaign_s::text[MAX_VAR] |
placeholder for gettext stuff
Definition at line 176 of file cp_campaign.h.
Referenced by GAME_CP_CampaignDescription_f().
float campaign_s::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 203 of file cp_campaign.h.
Referenced by CP_ParseCampaign(), and CP_SpawnNewMissions().
int campaign_s::ugvs |
start with x ugvs (robots)
Definition at line 182 of file cp_campaign.h.
Referenced by E_InitialEmployees().
bool campaign_s::visible |
visible in campaign menu?
Definition at line 189 of file cp_campaign.h.
Referenced by GAME_CP_GetCampaigns_f().
int campaign_s::workers |
start with x workers
Definition at line 180 of file cp_campaign.h.
Referenced by E_InitialEmployees(), and GAME_CP_CampaignDescription_f().