#include <baseaiinterface.h>
Public Member Functions | |
| void | reset (void) |
| AiThreat (void) | |
| AiThreat & | operator+= (const AiThreat &t) |
| void | read (tnstream &stream) |
| void | write (tnstream &stream) |
Public Attributes | |
| int | threatTypes |
| int | threat [aiValueTypeNum] |
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
Definition at line 39 of file baseaiinterface.h.
| AiThreat::AiThreat | ( | void | ) | [inline] |
| void AiThreat::reset | ( | void | ) |
Definition at line 2074 of file gamemap.cpp.
References aiValueTypeNum, and threat.
Referenced by AiThreat(), and AiValue::reset().
| 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().
Definition at line 42 of file baseaiinterface.h.
Referenced by CalculateThreat_Vehicle::calc_threat_vehicle(), operator+=(), read(), reset(), AI::showFieldInformation(), and write().
1.5.1