|
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. | |
| void | INT_ChangeIndividualInterest (float interestFactor, interestCategory_t category) |
| Change individual interest value. | |
| void | INT_IncreaseAlienInterest (const campaign_t *campaign) |
| Increase alien overall interest. | |
| bool | INT_SaveXML (xmlNode_t *parent) |
| Save callback for savegames in XML Format. | |
| bool | INT_LoadXML (xmlNode_t *parent) |
| Load callback for savegames in XML Format. | |
| void | INT_InitStartup (void) |
| Init actions for alien interests-subsystem. | |
| void | INT_Shutdown (void) |
| Closing actions for alien interests-subsystem. | |
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, int(), and INTERESTCATEGORY_MAX.
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_t::difficulty, and HOURS_PER_ONE_INTEREST.
Referenced by CP_CampaignRun().
Init actions for alien interests-subsystem.
Definition at line 235 of file cp_alien_interest.cpp.
References cgi, and debugInterestCmds.
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, SAVE_INTERESTS, SAVE_INTERESTS_ID, SAVE_INTERESTS_INTEREST, SAVE_INTERESTS_LASTINCREASEDELAY, SAVE_INTERESTS_LASTMISSIONSPAWNEDDELAY, SAVE_INTERESTS_OVERALL, SAVE_INTERESTS_VAL, saveInterestConstants, 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, i, INTERESTCATEGORY_MAX, and INTERESTCATEGORY_RECON.
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, i, INTERESTCATEGORY_MAX, SAVE_INTERESTCAT_NAMESPACE, SAVE_INTERESTS, SAVE_INTERESTS_ID, SAVE_INTERESTS_INTEREST, SAVE_INTERESTS_LASTINCREASEDELAY, SAVE_INTERESTS_LASTMISSIONSPAWNEDDELAY, SAVE_INTERESTS_OVERALL, SAVE_INTERESTS_VAL, saveInterestConstants, 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, and debugInterestCmds.
Referenced by CP_Shutdown().
|
static |
Definition at line 225 of file cp_alien_interest.cpp.
Referenced by INT_InitStartup(), and INT_Shutdown().