____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       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"

PlayerAi Class Reference

#include <ai_local.h>

List of all members.

Public Member Functions

 PlayerAi ()

Public Attributes

CPlayerPlayer
 Engine player structure.
CAiTypeAiType
 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< AiExplorationRequestFirstExplorationRequest
 Requests for exploration.
unsigned long LastExplorationGameCycle
 When did the last explore occur?
std::vector< AiTransportRequestTransportRequests
 Requests for transport.
unsigned long LastCanNotMoveGameCycle
 Last can not move cycle.
std::vector< AiRequestTypeUnitTypeRequests
 unit-types to build/train request,priority list
std::vector< AiBuildQueueUnitTypeBuilt
 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.


Detailed Description

AI variables.

Definition at line 181 of file ai_local.h.


Constructor & Destructor Documentation

PlayerAi::PlayerAi (  )  [inline]

Definition at line 183 of file ai_local.h.

References Needed, and TriedRepairWorkers.


Member Data Documentation

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]

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().

Flag need food.

Definition at line 207 of file ai_local.h.

Referenced by AiNeedMoreSupply(), and SaveAiPlayer().

Requests for exploration.

Definition at line 209 of file ai_local.h.

Referenced by AiExplore(), AiSendExplorers(), CclDefineAiPlayer(), and SaveAiPlayer().

When did the last explore occur?

Definition at line 210 of file ai_local.h.

Referenced by AiEachSecond(), AiSendExplorers(), CclDefineAiPlayer(), and SaveAiPlayer().

Requests for transport.

Definition at line 211 of file ai_local.h.

Referenced by AiEachCycle(), CclDefineAiPlayer(), and SaveAiPlayer().

Last can not move cycle.

Definition at line 212 of file ai_local.h.

Referenced by AiMoveUnitInTheWay(), CclDefineAiPlayer(), and SaveAiPlayer().

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().

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().


The documentation for this class was generated from the following file:

Generated on Sat Feb 21 00:28:25 2009 for Bos Wars by  doxygen 1.5.6