UFO: Alien Invasion
|
Alien interest header. More...
Go to the source code of this file.
Typedefs | |
typedef enum interestCategory_s | interestCategory_t |
Functions | |
void | INT_ResetAlienInterest (void) |
Initialize alien interest values and mission cycle. More... | |
void | INT_IncreaseAlienInterest (const struct campaign_s *campaign) |
void | INT_ChangeIndividualInterest (float percentage, interestCategory_t category) |
Change individual interest value. More... | |
void | INT_InitStartup (void) |
Init actions for alien interests-subsystem. More... | |
void | INT_Shutdown (void) |
Closing actions for alien interests-subsystem. More... | |
Alien interest header.
Definition in file cp_alien_interest.h.
typedef enum interestCategory_s interestCategory_t |
possible campaign interest categories: type of missions that aliens can undertake
enum interestCategory_s |
possible campaign interest categories: type of missions that aliens can undertake
Definition at line 29 of file cp_alien_interest.h.
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 struct campaign_s * | campaign | ) |
Init actions for alien interests-subsystem.
Definition at line 235 of file cp_alien_interest.cpp.
References cgi.
Referenced by CP_InitStartup().
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().
Closing actions for alien interests-subsystem.
Definition at line 243 of file cp_alien_interest.cpp.
References cgi.
Referenced by CP_Shutdown().