Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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 38 of file baseaiinterface.h.


Constructor & Destructor Documentation

AiThreat::AiThreat void   )  [inline]
 

Definition at line 43 of file baseaiinterface.h.

References reset().


Member Function Documentation

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

Definition at line 44 of file baseaiinterface.h.

References threat, and threatTypes.

void AiThreat::read tnstream stream  ) 
 

Definition at line 1818 of file gamemap.cpp.

References threat, and threatTypes.

Referenced by AiValue::read().

void AiThreat::reset void   ) 
 

Definition at line 1903 of file gamemap.cpp.

References aiValueTypeNum, and threat.

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

void AiThreat::write tnstream stream  ) 
 

Definition at line 1809 of file gamemap.cpp.

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

Referenced by AiValue::write().


Member Data Documentation

int AiThreat::threat[aiValueTypeNum]
 

Definition at line 41 of file baseaiinterface.h.

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

int AiThreat::threatTypes
 

Definition at line 40 of file baseaiinterface.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:16:00 2008 for Advanced Strategic Command by  doxygen 1.4.2