UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cp_alien_interest.cpp File Reference

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 []
 

Detailed Description

Alien interest values influence the campaign actions.

Definition in file cp_alien_interest.cpp.

Function Documentation

void INT_IncreaseAlienInterest ( const campaign_t campaign)

Increase alien overall interest.

See also
CP_CampaignRun
Note
hourly called

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().

void INT_InitStartup ( void  )

Init actions for alien interests-subsystem.

Definition at line 235 of file cp_alien_interest.cpp.

References cgi.

Referenced by CP_InitStartup().

void INT_ResetAlienInterest ( void  )

Initialize alien interest values and mission cycle.

Note
Should be used when a new single player campaign starts
See also
CP_CampaignInit

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().

void INT_Shutdown ( void  )

Closing actions for alien interests-subsystem.

Definition at line 243 of file cp_alien_interest.cpp.

References cgi.

Referenced by CP_Shutdown().

Variable Documentation

const cmdList_t debugInterestCmds[]
static
Initial value:
= {
{nullptr, nullptr, nullptr}
}

Definition at line 225 of file cp_alien_interest.cpp.