UFO: Alien Invasion
|
Alien interest values influence the campaign actions. More...
#include "../../cl_shared.h"
#include "cp_campaign.h"
#include "cp_alien_interest.h"
#include "save/save_interest.h"
Go to the source code of this file.
Functions | |
void | INT_ResetAlienInterest (void) |
Initialize alien interest values and mission cycle. More... | |
void | INT_ChangeIndividualInterest (float interestFactor, interestCategory_t category) |
Change individual interest value. More... | |
void | INT_IncreaseAlienInterest (const campaign_t *campaign) |
Increase alien overall interest. More... | |
bool | INT_SaveXML (xmlNode_t *parent) |
Save callback for savegames in XML Format. More... | |
bool | INT_LoadXML (xmlNode_t *parent) |
Load callback for savegames in XML Format. More... | |
void | INT_InitStartup (void) |
Init actions for alien interests-subsystem. More... | |
void | INT_Shutdown (void) |
Closing actions for alien interests-subsystem. More... | |
Variables | |
static const cmdList_t | debugInterestCmds [] |
Alien interest values influence the campaign actions.
Definition in file cp_alien_interest.cpp.
void INT_ChangeIndividualInterest | ( | float | interestFactor, |
interestCategory_t | category | ||
) |
Change individual interest value.
[in] | interestFactor | Maybe pe > 0 or < 0 |
[in] | category | Category of interest for aliens that should increase / decrease |
Definition at line 53 of file cp_alien_interest.cpp.
References ccs, cgi, f, int(), ccs_s::interest, INTERESTCATEGORY_MAX, and ccs_s::overallInterest.
Referenced by CP_BaseAttackMissionIsFailure(), CP_BaseAttackMissionIsSuccess(), CP_BaseAttackMissionOnSpawn(), CP_BuildBaseMissionBaseDestroyed(), CP_BuildBaseMissionIsFailure(), CP_BuildBaseMissionIsSuccess(), CP_BuildBaseMissionOnSpawn(), CP_HarvestMissionIsFailure(), CP_HarvestMissionIsSuccess(), CP_InterceptMissionIsFailure(), CP_InterceptMissionIsSuccess(), CP_ReconMissionIsFailure(), CP_ReconMissionIsSuccess(), CP_SpawnNewMissions(), CP_SupplyMissionIsFailure(), CP_SupplyMissionIsSuccess(), CP_TerrorMissionIsFailure(), CP_TerrorMissionIsSuccess(), CP_TerrorMissionOnSpawn(), CP_XVIMissionIsFailure(), and CP_XVIMissionIsSuccess().
void INT_IncreaseAlienInterest | ( | const campaign_t * | campaign | ) |
Increase alien overall interest.
Definition at line 92 of file cp_alien_interest.cpp.
References ccs, campaign_s::difficulty, HOURS_PER_ONE_INTEREST, ccs_s::lastInterestIncreaseDelay, and ccs_s::overallInterest.
Referenced by CP_CampaignRun().
Init actions for alien interests-subsystem.
Definition at line 235 of file cp_alien_interest.cpp.
References cgi.
Referenced by CP_InitStartup().
bool INT_LoadXML | ( | xmlNode_t * | parent | ) |
Load callback for savegames in XML Format.
[in] | parent | XML Node structure, where we get the information from |
Definition at line 130 of file cp_alien_interest.cpp.
References ccs, cgi, ccs_s::interest, ccs_s::lastInterestIncreaseDelay, ccs_s::lastMissionSpawnedDelay, ccs_s::overallInterest, SAVE_INTERESTS, SAVE_INTERESTS_ID, SAVE_INTERESTS_INTEREST, SAVE_INTERESTS_LASTINCREASEDELAY, SAVE_INTERESTS_LASTMISSIONSPAWNEDDELAY, SAVE_INTERESTS_OVERALL, SAVE_INTERESTS_VAL, saveInterestConstants, cgame_import_s::XML_GetNextNode(), cgame_import_s::XML_GetNode(), cgame_import_s::XML_GetString(), and xmlNode_t.
Referenced by SAV_Init().
Initialize alien interest values and mission cycle.
Definition at line 36 of file cp_alien_interest.cpp.
References ccs, ccs_s::curCampaign, i, campaign_s::initialInterest, ccs_s::interest, INTERESTCATEGORY_MAX, INTERESTCATEGORY_RECON, ccs_s::lastInterestIncreaseDelay, ccs_s::lastMissionSpawnedDelay, and ccs_s::overallInterest.
Referenced by CP_CampaignInit(), and TEST_F().
bool INT_SaveXML | ( | xmlNode_t * | parent | ) |
Save callback for savegames in XML Format.
[out] | parent | XML Node structure, where we write the information to |
Definition at line 109 of file cp_alien_interest.cpp.
References ccs, cgi, cgame_import_s::Com_GetConstVariable(), i, ccs_s::interest, INTERESTCATEGORY_MAX, ccs_s::lastInterestIncreaseDelay, ccs_s::lastMissionSpawnedDelay, ccs_s::overallInterest, SAVE_INTERESTCAT_NAMESPACE, SAVE_INTERESTS, SAVE_INTERESTS_ID, SAVE_INTERESTS_INTEREST, SAVE_INTERESTS_LASTINCREASEDELAY, SAVE_INTERESTS_LASTMISSIONSPAWNEDDELAY, SAVE_INTERESTS_OVERALL, SAVE_INTERESTS_VAL, saveInterestConstants, cgame_import_s::XML_AddNode(), and xmlNode_t.
Referenced by SAV_Init().
Closing actions for alien interests-subsystem.
Definition at line 243 of file cp_alien_interest.cpp.
References cgi.
Referenced by CP_Shutdown().
|
static |
Definition at line 225 of file cp_alien_interest.cpp.