|
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 |
| class DateTime | 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 164 of file cp_campaign.h.
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| signed int campaign_t::difficulty |
difficulty level -4 - 4
Definition at line 186 of file cp_campaign.h.
Referenced by AM_FillTeamFromAircraft(), CP_ParseCampaign(), CP_StartXVISpreading_f(), GAME_CP_CampaignDescription_f(), and INT_IncreaseAlienInterest().
| 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().
| 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().
| const campaignEvents_t* campaign_t::events |
Definition at line 195 of file cp_campaign.h.
Referenced by CP_CheckCampaignEvents(), and CP_ParseCampaign().
| bool campaign_t::finished |
Definition at line 194 of file cp_campaign.h.
| 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().
| float campaign_t::healingRate |
the hospital healing rate
Definition at line 199 of file cp_campaign.h.
Referenced by CP_ParseCampaign().
| 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().
| int campaign_t::idx |
own index in global campaign array
Definition at line 165 of file cp_campaign.h.
Referenced by CP_ParseCampaign().
| 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().
| int campaign_t::initialInterest |
Definition at line 208 of file cp_campaign.h.
Referenced by CP_ParseCampaign().
| 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().
| 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().
| 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().
| 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().
| 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().
| int campaign_t::maxMissions |
Maximum Missions per Interest Level
Definition at line 203 of file cp_campaign.h.
Referenced by CP_ParseCampaign().
| 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().
| int campaign_t::minMissions |
Minimum Missions per Interest Level
Definition at line 202 of file cp_campaign.h.
Referenced by CP_ParseCampaign().
| 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().
| 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().
| int campaign_t::num |
Definition at line 185 of file cp_campaign.h.
| 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().
| float campaign_t::produceRate |
higher number = faster production
Definition at line 197 of file cp_campaign.h.
Referenced by CP_ParseCampaign().
| 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().
| 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().
| salary_t campaign_t::salaries |
Definition at line 196 of file cp_campaign.h.
Referenced by CP_ParseCampaign(), NAT_HandleBudget(), Employee::salary(), and STAT_GetExpenses_f().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| int campaign_t::ugvs |
start with x ugvs (robots)
Definition at line 183 of file cp_campaign.h.
Referenced by E_InitialEmployees().
| bool campaign_t::visible |
visible in campaign menu?
Definition at line 190 of file cp_campaign.h.
Referenced by GAME_CP_GetCampaigns_f().
| 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().