$treeview $search $mathjax
Stratagus
2.2.6
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <ai_local.h>
Public Member Functions | |
PlayerAi () | |
Public Attributes | |
CPlayer * | Player |
CAiType * | AiType |
Engine player structure. | |
std::string | Script |
AI type of this player AI. | |
unsigned long | SleepCycles |
Script executed. | |
AiForceManager | Force |
Cycles to sleep. | |
int | Reserve [MaxCosts] |
Forces controlled by AI. | |
int | Used [MaxCosts] |
Resources to keep in reserve. | |
int | Needed [MaxCosts] |
Used resources. | |
int | Collect [MaxCosts] |
Needed resources. | |
int | NeededMask |
Collect % of resources. | |
bool | NeedSupply |
Mask for needed resources. | |
bool | ScriptDebug |
Flag need food. | |
std::vector< AiExplorationRequest > | FirstExplorationRequest |
Flag script debuging on/off. | |
unsigned long | LastExplorationGameCycle |
Requests for exploration. | |
std::vector< AiTransportRequest > | TransportRequests |
When did the last explore occur? | |
unsigned long | LastCanNotMoveGameCycle |
Requests for transport. | |
std::vector< AiRequestType > | UnitTypeRequests |
Last can not move cycle. | |
std::vector< CUnitType * > | UpgradeToRequests |
unit-types to build/train request,priority list | |
std::vector< CUpgrade * > | ResearchRequests |
Upgrade to unit-type requested and priority list. | |
std::vector< AiBuildQueue > | UnitTypeBuilt |
Upgrades requested and priority list. | |
int | LastRepairBuilding |
What the resource manager should build. | |
unsigned int | TriedRepairWorkers [UnitMax] |
Last building checked for repair in this turn. |
PlayerAi::PlayerAi | ( | ) | [inline] |
Engine player structure.
std::string PlayerAi::Script |
AI type of this player AI.
unsigned long PlayerAi::SleepCycles |
Script executed.
Cycles to sleep.
int PlayerAi::Reserve[MaxCosts] |
Forces controlled by AI.
int PlayerAi::Used[MaxCosts] |
Resources to keep in reserve.
int PlayerAi::Needed[MaxCosts] |
Used resources.
int PlayerAi::Collect[MaxCosts] |
Needed resources.
Collect % of resources.
bool PlayerAi::NeedSupply |
Mask for needed resources.
Flag need food.
std::vector<AiExplorationRequest> PlayerAi::FirstExplorationRequest |
Flag script debuging on/off.
unsigned long PlayerAi::LastExplorationGameCycle |
Requests for exploration.
std::vector<AiTransportRequest> PlayerAi::TransportRequests |
When did the last explore occur?
unsigned long PlayerAi::LastCanNotMoveGameCycle |
Requests for transport.
std::vector<AiRequestType> PlayerAi::UnitTypeRequests |
Last can not move cycle.
std::vector<CUnitType *> PlayerAi::UpgradeToRequests |
unit-types to build/train request,priority list
std::vector<CUpgrade *> PlayerAi::ResearchRequests |
Upgrade to unit-type requested and priority list.
std::vector<AiBuildQueue> PlayerAi::UnitTypeBuilt |
Upgrades requested and priority list.
What the resource manager should build.
unsigned int PlayerAi::TriedRepairWorkers[UnitMax] |
Last building checked for repair in this turn.