#include <baseaiinterface.h>
Inheritance diagram for AiValue:

Public Member Functions | |
| void | reset (int _valueType) |
| AiValue (int _valueType) | |
| int | getValue () |
| void | setValue (int _value) |
| void | setAdditionalValue (int _addedValue) |
| void | resetAdditionalValue () |
| void | read (tnstream &stream) |
| void | write (tnstream &stream) |
Public Attributes | |
| AiThreat | threat |
| int | valueType |
The value consists of a base value calculated from the unit type, damage etc and an additional value. The additional value is used for example if a unit is trying to capture one of your buildings, of if the mission goals say that this unit must be protected at all cost (if it is yours) or destroyed (if it is the enemies')
Definition at line 61 of file baseaiinterface.h.
| AiValue::AiValue | ( | int | _valueType | ) | [inline] |
| void AiValue::reset | ( | int | _valueType | ) | [inline] |
Definition at line 71 of file baseaiinterface.h.
References AiThreat::reset(), threat, and valueType.
Referenced by AiValue(), AiParameter::reset(), and AiParameter::setNewHeight().
| int AiValue::getValue | ( | ) | [inline] |
Definition at line 73 of file baseaiinterface.h.
Referenced by CalculateThreat_Vehicle::calc_threat_vehicle(), AI::showFieldInformation(), and SearchReconquerBuilding::unitfound().
| void AiValue::setValue | ( | int | _value | ) | [inline] |
Definition at line 74 of file baseaiinterface.h.
Referenced by CalculateThreat_Vehicle::calc_threat_vehicle().
| void AiValue::setAdditionalValue | ( | int | _addedValue | ) | [inline] |
Definition at line 75 of file baseaiinterface.h.
Referenced by SearchReconquerBuilding::unitfound().
| void AiValue::resetAdditionalValue | ( | ) | [inline] |
Definition at line 76 of file baseaiinterface.h.
| void AiValue::read | ( | tnstream & | stream | ) |
Reimplemented in AiParameter.
Definition at line 2011 of file gamemap.cpp.
References AiThreat::read(), tnstream::readInt(), threat, and valueType.
Referenced by AiParameter::read().
| void AiValue::write | ( | tnstream & | stream | ) |
Reimplemented in AiParameter.
Definition at line 2001 of file gamemap.cpp.
References threat, valueType, AiThreat::write(), and tnstream::writeInt().
Referenced by AiParameter::write().
Definition at line 68 of file baseaiinterface.h.
Referenced by CalculateThreat_Vehicle::calc_threat_vehicle(), read(), reset(), and write().
1.5.1