UFO: Alien Invasion
Loading...
Searching...
No Matches
cp_alien_interest.h File Reference

Alien interest header. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  interestCategory_t {
  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.
void INT_IncreaseAlienInterest (const struct campaign_s *campaign)
void INT_ChangeIndividualInterest (float percentage, interestCategory_t category)
 Change individual interest value.
void INT_InitStartup (void)
 Init actions for alien interests-subsystem.
void INT_Shutdown (void)
 Closing actions for alien interests-subsystem.

Detailed Description

Alien interest header.

Definition in file cp_alien_interest.h.

Enumeration Type Documentation

◆ interestCategory_t

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

◆ INT_ChangeIndividualInterest()

◆ INT_IncreaseAlienInterest()

void INT_IncreaseAlienInterest ( const struct campaign_s * campaign)

◆ INT_InitStartup()

void INT_InitStartup ( void )

Init actions for alien interests-subsystem.

Definition at line 235 of file cp_alien_interest.cpp.

References cgi, and debugInterestCmds.

Referenced by CP_InitStartup().

◆ INT_ResetAlienInterest()

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, i, INTERESTCATEGORY_MAX, and INTERESTCATEGORY_RECON.

Referenced by CP_CampaignInit(), and TEST_F().

◆ INT_Shutdown()

void INT_Shutdown ( void )

Closing actions for alien interests-subsystem.

Definition at line 243 of file cp_alien_interest.cpp.

References cgi, and debugInterestCmds.

Referenced by CP_Shutdown().