____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"#include <ai_local.h>
Public Member Functions | |
| PlayerAi () | |
Public Attributes | |
| CPlayer * | Player |
| Engine player structure. | |
| CAiType * | AiType |
| AI type of this player AI. | |
| std::string | Script |
| Script executed. | |
| bool | ScriptDebug |
| Flag script debuging on/off. | |
| unsigned long | SleepCycles |
| Cycles to sleep. | |
| AiForce | Force [AI_MAX_ATTACKING_FORCES] |
| Forces controlled by AI. | |
| int | Needed [MaxCosts] |
| Needed resources. | |
| int | NeededMask |
| Mask for needed resources. | |
| bool | NeedSupply |
| Flag need food. | |
| std::vector< AiExplorationRequest > | FirstExplorationRequest |
| Requests for exploration. | |
| unsigned long | LastExplorationGameCycle |
| When did the last explore occur? | |
| std::vector< AiTransportRequest > | TransportRequests |
| Requests for transport. | |
| unsigned long | LastCanNotMoveGameCycle |
| Last can not move cycle. | |
| std::vector< AiRequestType > | UnitTypeRequests |
| unit-types to build/train request,priority list | |
| std::vector< AiBuildQueue > | UnitTypeBuilt |
| What the resource manager should build. | |
| int | LastRepairBuilding |
| Last building checked for repair in this turn. | |
| unsigned | TriedRepairWorkers [UnitMax] |
| No. workers that failed trying to repair a building. | |
Definition at line 181 of file ai_local.h.
| PlayerAi::PlayerAi | ( | ) | [inline] |
Engine player structure.
Definition at line 192 of file ai_local.h.
Referenced by AiAssignFreeUnitsToForce(), AiBuildBuilding(), AiCheckCosts(), AiCheckingWork(), AiCheckMagic(), AiCheckRepair(), AiCheckUnits(), AiCollectResources(), AiCountUnitBuilders(), AiFindAvailableUnitTypeEquiv(), AiInit(), AiMakeUnit(), AiPlanAttack(), AiRemoveFromBuilt(), AiRepairBuilding(), AiRepairUnit(), AiResourceManager(), AiSendExplorers(), AiTrainUnit(), CclAiDump(), CclAiPlayer(), CclAiWait(), and CclDefineAiPlayer().
AI type of this player AI.
Definition at line 193 of file ai_local.h.
Referenced by AiInit(), CclDefineAiPlayer(), and SaveAiPlayer().
| std::string PlayerAi::Script |
Script executed.
Definition at line 195 of file ai_local.h.
Referenced by AiExecuteScript(), AiInit(), CclAiDump(), CclDefineAiPlayer(), and SaveAiPlayer().
Flag script debuging on/off.
Definition at line 196 of file ai_local.h.
Referenced by CclAiDebug(), CclDefineAiPlayer(), and SaveAiPlayer().
| unsigned long PlayerAi::SleepCycles |
Cycles to sleep.
Definition at line 197 of file ai_local.h.
Referenced by CclAiSleep(), CclDefineAiPlayer(), and SaveAiPlayer().
| AiForce PlayerAi::Force[AI_MAX_ATTACKING_FORCES] |
Forces controlled by AI.
Definition at line 202 of file ai_local.h.
Referenced by AiAssignFreeUnitsToForce(), AiAssignToForce(), AiAttackWithForce(), AiAttackWithForceAt(), AiCheckBelongsToForce(), AiCheckUnits(), AiCleanForce(), AiForceManager(), AiHelpMe(), AiPlanAttack(), CclAiCheckForce(), CclAiDump(), CclAiForce(), CclAiForceRole(), CclAiWaitForce(), CclDefineAiPlayer(), and SaveAiPlayer().
| int PlayerAi::Needed[MaxCosts] |
Needed resources.
Definition at line 205 of file ai_local.h.
Referenced by CclDefineAiPlayer(), PlayerAi(), and SaveAiPlayer().
Mask for needed resources.
Definition at line 206 of file ai_local.h.
Referenced by AiCheckingWork(), AiCollectResources(), AiResourceManager(), CclDefineAiPlayer(), and SaveAiPlayer().
| bool PlayerAi::NeedSupply |
Flag need food.
Definition at line 207 of file ai_local.h.
Referenced by AiNeedMoreSupply(), and SaveAiPlayer().
| std::vector<AiExplorationRequest> PlayerAi::FirstExplorationRequest |
Requests for exploration.
Definition at line 209 of file ai_local.h.
Referenced by AiExplore(), AiSendExplorers(), CclDefineAiPlayer(), and SaveAiPlayer().
| unsigned long PlayerAi::LastExplorationGameCycle |
When did the last explore occur?
Definition at line 210 of file ai_local.h.
Referenced by AiEachSecond(), AiSendExplorers(), CclDefineAiPlayer(), and SaveAiPlayer().
| std::vector<AiTransportRequest> PlayerAi::TransportRequests |
Requests for transport.
Definition at line 211 of file ai_local.h.
Referenced by AiEachCycle(), CclDefineAiPlayer(), and SaveAiPlayer().
| unsigned long PlayerAi::LastCanNotMoveGameCycle |
Last can not move cycle.
Definition at line 212 of file ai_local.h.
Referenced by AiMoveUnitInTheWay(), CclDefineAiPlayer(), and SaveAiPlayer().
| std::vector<AiRequestType> PlayerAi::UnitTypeRequests |
unit-types to build/train request,priority list
Definition at line 213 of file ai_local.h.
Referenced by AiCheckUnits(), CclAiDump(), CclDefineAiPlayer(), FindInUnitTypeRequests(), InsertUnitTypeRequests(), and SaveAiPlayer().
| std::vector<AiBuildQueue> PlayerAi::UnitTypeBuilt |
What the resource manager should build.
Definition at line 214 of file ai_local.h.
Referenced by AiAddUnitTypeRequest(), AiCheckingWork(), AiCheckUnits(), AiReduceMadeInBuilt2(), AiRemoveFromBuilt2(), CclAiDump(), CclDefineAiPlayer(), and SaveAiPlayer().
Last building checked for repair in this turn.
Definition at line 215 of file ai_local.h.
Referenced by AiCheckRepair(), CclDefineAiPlayer(), and SaveAiPlayer().
| unsigned PlayerAi::TriedRepairWorkers[UnitMax] |
No. workers that failed trying to repair a building.
Definition at line 216 of file ai_local.h.
Referenced by AiRepairBuilding(), CclDefineAiPlayer(), PlayerAi(), and SaveAiPlayer().
1.5.6