cp_alien_interest.c 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"
Include dependency graph for cp_alien_interest.c:

Go to the source code of this file.

Functions

void CL_ResetAlienInterest (void)
 Initialize alien interest values and mission cycle.
void CL_ChangeIndividualInterest (float interestFactor, interestCategory_t category)
 Change individual interest value.
void CP_IncreaseAlienInterest (void)
 Increase alien overall interest.
qboolean CP_SaveInterestsXML (mxml_node_t *parent)
 Save callback for savegames in XML Format.
qboolean CP_LoadInterestsXML (mxml_node_t *parent)
 Load callback for savegames in XML Format.

Detailed Description

Alien interest values influence the campaign actions.

Definition in file cp_alien_interest.c.


Function Documentation

void CL_ChangeIndividualInterest ( float  interestFactor,
interestCategory_t  category 
)
void CL_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.c.

References ccs, i, INITIAL_OVERALL_INTEREST, ccs_s::interest, INTERESTCATEGORY_MAX, INTERESTCATEGORY_RECON, ccs_s::lastInterestIncreaseDelay, ccs_s::lastMissionSpawnedDelay, and ccs_s::overallInterest.

Referenced by CP_CampaignInit().

void CP_IncreaseAlienInterest ( void   ) 

Increase alien overall interest.

See also:
CL_CampaignRun
Note:
hourly called

Definition at line 94 of file cp_alien_interest.c.

References ccs, ccs_s::curCampaign, campaign_s::difficulty, HOURS_PER_ONE_INTEREST, ccs_s::lastInterestIncreaseDelay, and ccs_s::overallInterest.

Referenced by CL_CampaignRun().

qboolean CP_LoadInterestsXML ( mxml_node_t parent  ) 
qboolean CP_SaveInterestsXML ( mxml_node_t parent  ) 

Generated by  doxygen 1.6.2