#include <ai.h>
Inheritance diagram for AI:

Public Member Functions | |
| AI (GameMap *_map, int _player) | |
| void | run () |
| void | run (bool benchmark) |
| starts the Ai. If benchmark is true, the AI might take longer since it is not time limited, it won't display any graphics and will output the time it needed to run completely | |
| GameMap * | getMap (void) |
| returns the map this AI runson | |
| int | getPlayerNum (void) |
| returns the number of the player which is controlled by this ai | |
| Player & | getPlayer (void) |
| Player & | getPlayer (int player) |
| Player & | getPlayer (PlayerID id) |
| void | showFieldInformation (int x, int y) |
| bool | isRunning (void) |
| VisibilityStates | getVision (void) |
| the AI uses a different vision than human player, to counter the fact that a human player can "know" a map and take a look before starting to play. | |
| void | read (tnstream &stream) |
| void | write (tnstream &stream) const |
| ~AI () | |
Static Public Member Functions | |
| static bool | moveVariantComp (const AI::MoveVariant *mv1, const AI::MoveVariant *mv2) |
Friends | |
| class | ServiceOrder |
| class | RefuelConstraint |
| class | CheckFieldRecon |
| class | BuildingValueComp |
| class | CalculateThreat_Vehicle |
| class | VehicleTypeEfficiencyCalculator |
| class | Section |
| class | Sections |
Classes | |
| class | AiResult |
| class | BuildingCapture |
| class | BuildingValueComp |
| class | CheckFieldRecon |
| struct | Config |
| class | FieldInformation |
| class | MoveVariant |
| struct | ProductionRating |
| class | RefuelConstraint |
| class | Section |
| class | Sections |
| class | ServiceOrder |
| class | ServiceTargetEquals |
| class | TargetVector |
| class | UnitDistribution |
| class | VehicleTypeEfficiencyCalculator |
| class | WeaponThreatRange |
|
||||||||||||
|
Definition at line 27 of file base.cpp. References getDefaultMapDisplay(), CGameOptions::Instance(), and ReplayMapDisplay::setCursorDelay(). |
|
|
|
|
|
returns the map this AI runson
Definition at line 481 of file ai.h. Referenced by HiddenAStar3D::getMoveCost(), StratAStar3D::getMoveCost(), getPlayer(), run(), showFieldInformation(), and UnitAttacksUnit_FakeHemming::UnitAttacksUnit_FakeHemming(). |
|
|
Definition at line 488 of file ai.h. References getMap(). |
|
|
Definition at line 487 of file ai.h. References getMap(). |
|
|
Definition at line 486 of file ai.h. References getMap(). Referenced by SearchReconquerBuilding::testfield(). |
|
|
returns the number of the player which is controlled by this ai
Definition at line 484 of file ai.h. Referenced by CalculateThreat_Vehicle::calc_threat_vehicle(), CalculateThreat_VehicleType::calc_threat_vehicletype(), HiddenAStar3D::getMoveCost(), HiddenAStar::getMoveCost(), showFieldInformation(), and SearchReconquerBuilding::unitfound(). |
|
|
the AI uses a different vision than human player, to counter the fact that a human player can "know" a map and take a look before starting to play. This function returns the minimum visibility state of a field.
Implements BaseAI. |
|
|
Implements BaseAI. |
|
||||||||||||
|
Definition at line 162 of file tactics.cpp. |
|
|
Implements BaseAI. Definition at line 443 of file base.cpp. References currentServiceOrderVersion, MapCoordinate::read(), tnstream::readInt(), and ServiceOrder. Referenced by tgameloaders::readAI(). |
|
|
starts the Ai. If benchmark is true, the AI might take longer since it is not time limited, it won't display any graphics and will output the time it needed to run completely
Definition at line 205 of file base.cpp. References checkforvictory(), displaymessage(), displaymessage2(), getMap(), repaintMap, ticker, and visible_ago. |
|
|
Implements BaseAI. |
|
||||||||||||
|
Definition at line 344 of file base.cpp. References AIjobs, Vehicle::aiparam, AItasks, aiValueTypeNum, choehenstufen, AiParameter::dest, fieldvisiblenow(), MapCoordinate3D::getBitmappedHeight(), getfield(), AiParameter::getJob(), getMap(), getPlayerNum(), AiParameter::getTask(), AiValue::getValue(), ContainerBaseType::id, Vehicle::networkid, repaintMap, ASC_PG_Dialog::RunModal(), Section, PG_Widget::Show(), strrr(), AiThreat::threat, Vehicle::typ, tfield::vehicle, MapCoordinate::x, and MapCoordinate::y. Referenced by ASC_MainScreenWidget::eventKeyDown(). |
|
|
Implements BaseAI. Definition at line 517 of file base.cpp. References tnstream::writeInt(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 445 of file ai.h. Referenced by showFieldInformation(). |
|
|
|
|
|
Definition at line 111 of file ai.h. Referenced by read(). |
|
|
|
1.4.2