$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

PlayerAi Class Reference

#include <ai_local.h>

List of all members.


Public Member Functions

 PlayerAi ()

Public Attributes

CPlayerPlayer
CAiTypeAiType
 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< AiExplorationRequestFirstExplorationRequest
 Flag script debuging on/off.
unsigned long LastExplorationGameCycle
 Requests for exploration.
std::vector< AiTransportRequestTransportRequests
 When did the last explore occur?
unsigned long LastCanNotMoveGameCycle
 Requests for transport.
std::vector< AiRequestTypeUnitTypeRequests
 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< AiBuildQueueUnitTypeBuilt
 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.

Detailed Description

AI variables.

Constructor & Destructor Documentation

PlayerAi::PlayerAi (  )  [inline]


Member Data Documentation

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.

Mask for needed resources.

Flag need food.

Flag script debuging on/off.

Requests for exploration.

When did the last explore occur?

Requests for transport.

Last can not move cycle.

unit-types to build/train request,priority list

Upgrade to unit-type requested and priority list.

Upgrades requested and priority list.

What the resource manager should build.

unsigned int PlayerAi::TriedRepairWorkers[UnitMax]

Last building checked for repair in this turn.


The documentation for this class was generated from the following file:
(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.