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

Alien interest header. More...

Go to the source code of this file.

Typedefs

typedef enum interestCategory_s interestCategory_t
 

Enumerations

enum  interestCategory_s {
  INTERESTCATEGORY_NONE, INTERESTCATEGORY_RECON, INTERESTCATEGORY_TERROR_ATTACK, INTERESTCATEGORY_BASE_ATTACK,
  INTERESTCATEGORY_BUILDING, INTERESTCATEGORY_SUBVERT, INTERESTCATEGORY_SUPPLY, INTERESTCATEGORY_XVI,
  INTERESTCATEGORY_INTERCEPT, INTERESTCATEGORY_INTERCEPTBOMBING, INTERESTCATEGORY_HARVEST, INTERESTCATEGORY_ALIENBASE,
  INTERESTCATEGORY_UFOCARRIER, INTERESTCATEGORY_RESCUE, INTERESTCATEGORY_MAX
}
 

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

Detailed Description

Alien interest header.

Definition in file cp_alien_interest.h.

Typedef Documentation

possible campaign interest categories: type of missions that aliens can undertake

Enumeration Type Documentation

possible campaign interest categories: type of missions that aliens can undertake

Enumerator
INTERESTCATEGORY_NONE 

No mission

INTERESTCATEGORY_RECON 

Aerial recon mission or ground mission (UFO may or not land)

INTERESTCATEGORY_TERROR_ATTACK 

Terror attack

INTERESTCATEGORY_BASE_ATTACK 

Alien attack a phalanx base

INTERESTCATEGORY_BUILDING 

Alien build a new base or subverse governments

INTERESTCATEGORY_SUBVERT 

pseudo mission type for subverse governments

INTERESTCATEGORY_SUPPLY 

Alien supply one of their bases

INTERESTCATEGORY_XVI 

Alien try to spread XVI

INTERESTCATEGORY_INTERCEPT 

Alien try to intercept PHALANX aircraft

INTERESTCATEGORY_INTERCEPTBOMBING 

Alien try to attack PHALANX installation. A subtype of INTERCEPT

INTERESTCATEGORY_HARVEST 

Alien try to harvest

INTERESTCATEGORY_ALIENBASE 

Alien base already built on earth

Note
This is not a mission alien can undertake, but the result of INTERESTCATEGORY_BUILDING
INTERESTCATEGORY_UFOCARRIER 

UFO-Carrier is detected

INTERESTCATEGORY_RESCUE 
INTERESTCATEGORY_MAX 

Definition at line 29 of file cp_alien_interest.h.

Function Documentation

void INT_IncreaseAlienInterest ( const struct campaign_s campaign)
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().