_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | Public Attributes | List of all members
PlayerAi Class Reference

#include <ai_local.h>

Public Member Functions

 PlayerAi ()
 

Public Attributes

CPlayerPlayer
 
CAiTypeAiType
 Engine player structure. More...
 
std::string Script
 AI type of this player AI. More...
 
unsigned long SleepCycles
 Script executed. More...
 
AiForceManager Force
 Cycles to sleep. More...
 
int Reserve [MaxCosts]
 Forces controlled by AI. More...
 
int Used [MaxCosts]
 Resources to keep in reserve. More...
 
int Needed [MaxCosts]
 Used resources. More...
 
int Collect [MaxCosts]
 Needed resources. More...
 
int NeededMask
 Collect % of resources. More...
 
bool NeedSupply
 Mask for needed resources. More...
 
bool ScriptDebug
 Flag need food. More...
 
bool BuildDepots
 Flag script debuging on/off. More...
 
std::vector< AiExplorationRequestFirstExplorationRequest
 Build new depots if nessesary. More...
 
unsigned long LastExplorationGameCycle
 Requests for exploration. More...
 
unsigned long LastCanNotMoveGameCycle
 When did the last explore occur? More...
 
std::vector< AiRequestTypeUnitTypeRequests
 Last can not move cycle. More...
 
std::vector< CUnitType * > UpgradeToRequests
 unit-types to build/train request,priority list More...
 
std::vector< CUpgrade * > ResearchRequests
 Upgrade to unit-type requested and priority list. More...
 
std::vector< AiBuildQueueUnitTypeBuilt
 Upgrades requested and priority list. More...
 
int LastRepairBuilding
 What the resource manager should build. More...
 

Detailed Description

AI variables.

Constructor & Destructor Documentation

◆ PlayerAi()

PlayerAi::PlayerAi ( )
inline

Member Data Documentation

◆ AiType

CAiType* PlayerAi::AiType

Engine player structure.

◆ BuildDepots

bool PlayerAi::BuildDepots

Flag script debuging on/off.

◆ Collect

int PlayerAi::Collect[MaxCosts]

Needed resources.

◆ FirstExplorationRequest

std::vector<AiExplorationRequest> PlayerAi::FirstExplorationRequest

Build new depots if nessesary.

◆ Force

AiForceManager PlayerAi::Force

Cycles to sleep.

◆ LastCanNotMoveGameCycle

unsigned long PlayerAi::LastCanNotMoveGameCycle

When did the last explore occur?

◆ LastExplorationGameCycle

unsigned long PlayerAi::LastExplorationGameCycle

Requests for exploration.

◆ LastRepairBuilding

int PlayerAi::LastRepairBuilding

What the resource manager should build.

◆ Needed

int PlayerAi::Needed[MaxCosts]

Used resources.

◆ NeededMask

int PlayerAi::NeededMask

Collect % of resources.

◆ NeedSupply

bool PlayerAi::NeedSupply

Mask for needed resources.

◆ Player

CPlayer* PlayerAi::Player

◆ ResearchRequests

std::vector<CUpgrade *> PlayerAi::ResearchRequests

Upgrade to unit-type requested and priority list.

◆ Reserve

int PlayerAi::Reserve[MaxCosts]

Forces controlled by AI.

◆ Script

std::string PlayerAi::Script

AI type of this player AI.

◆ ScriptDebug

bool PlayerAi::ScriptDebug

Flag need food.

◆ SleepCycles

unsigned long PlayerAi::SleepCycles

Script executed.

◆ UnitTypeBuilt

std::vector<AiBuildQueue> PlayerAi::UnitTypeBuilt

Upgrades requested and priority list.

◆ UnitTypeRequests

std::vector<AiRequestType> PlayerAi::UnitTypeRequests

Last can not move cycle.

◆ UpgradeToRequests

std::vector<CUnitType *> PlayerAi::UpgradeToRequests

unit-types to build/train request,priority list

◆ Used

int PlayerAi::Used[MaxCosts]

Resources to keep in reserve.


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