AiThreat Class Reference

the threat that a unit poses against other units. More...

#include <baseaiinterface.h>

List of all members.

Public Member Functions

void reset (void)
 AiThreat (void)
AiThreatoperator+= (const AiThreat &t)
void read (tnstream &stream)
void write (tnstream &stream)

Public Attributes

int threatTypes
int threat [aiValueTypeNum]


Detailed Description

the threat that a unit poses against other units.

Since a given unit may usually not attack all kinds of units ( satellites, submarines, etc ), there are several different groups of unitTypes, with a different threat rating each

See also:
aiValueTypeNum

Definition at line 39 of file baseaiinterface.h.


Constructor & Destructor Documentation

AiThreat::AiThreat ( void   )  [inline]

Definition at line 44 of file baseaiinterface.h.

References reset().


Member Function Documentation

void AiThreat::reset ( void   ) 

Definition at line 2074 of file gamemap.cpp.

References aiValueTypeNum, and threat.

Referenced by AiThreat(), and AiValue::reset().

AiThreat& AiThreat::operator+= ( const AiThreat t  )  [inline]

Definition at line 45 of file baseaiinterface.h.

References threat, and threatTypes.

void AiThreat::read ( tnstream stream  ) 

Definition at line 1989 of file gamemap.cpp.

References tnstream::readInt(), threat, and threatTypes.

Referenced by AiValue::read().

void AiThreat::write ( tnstream stream  ) 

Definition at line 1980 of file gamemap.cpp.

References threat, threatTypes, and tnstream::writeInt().

Referenced by AiValue::write().


Member Data Documentation

int AiThreat::threatTypes

Definition at line 41 of file baseaiinterface.h.

Referenced by operator+=(), read(), and write().

int AiThreat::threat[aiValueTypeNum]

Definition at line 42 of file baseaiinterface.h.

Referenced by CalculateThreat_Vehicle::calc_threat_vehicle(), operator+=(), read(), reset(), AI::showFieldInformation(), and write().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:46:15 2012 for Advanced Strategic Command by  doxygen 1.5.1