_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ 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 | |
ai.cpp - The computer player AI main file. | |
std::vector< std::vector< CUnitType * > > & | Train () |
std::vector< std::vector< CUnitType * > > & | Build () |
std::vector< std::vector< CUnitType * > > & | Upgrade () |
std::vector< std::vector< CUnitType * > > & | Research () |
std::vector< std::vector< CUnitType * > > & | SingleResearch () |
std::vector< std::vector< CUnitType * > > & | Repair () |
std::vector< std::vector< CUnitType * > > & | UnitLimit () |
std::vector< std::vector< CUnitType * > > & | Equiv () |
std::vector< std::vector< CUnitType * > > & | Refinery () |
std::vector< std::vector< CUnitType * > > & | Depots () |
AI Helper.
Contains information needed for the AI. If the AI needs an unit or building or upgrade or spell, it could lookup in this tables to find where it could be trained, built or researched.
std::vector< std::vector< CUnitType * > > & AiHelper::Build | ( | ) |
The index is the unit that should be build, giving a table of all units/buildings which could build this unit.
std::vector< std::vector< CUnitType * > > & AiHelper::Depots | ( | ) |
The index is the resource id - 1 (we can't store TIME), giving a table of all units/buildings/mines which can store this resource.
std::vector< std::vector< CUnitType * > > & AiHelper::Equiv | ( | ) |
The index is the unit that should be made, giving a table of all units/buildings which are equivalent.
std::vector< std::vector< CUnitType * > > & AiHelper::Refinery | ( | ) |
The index is the resource id - 1 (we can't mine TIME), giving a table of all units/buildings/mines which can harvest this resource.
std::vector< std::vector< CUnitType * > > & AiHelper::Repair | ( | ) |
The index is the unit that should be repaired, giving a table of all units/buildings which could repair this unit.
std::vector< std::vector< CUnitType * > > & AiHelper::Research | ( | ) |
The index is the research that should be made, giving a table of all units/buildings which could research this upgrade. This table only includes those unit types which have the research defined as a button without the "check-single-research" restriction.
std::vector< std::vector< CUnitType * > > & AiHelper::SingleResearch | ( | ) |
The index is the research that should be made, giving a table of all units/buildings which could research this upgrade. This table only includes those unit types which have the research defined as a button with the "check-single-research" restriction.
std::vector< std::vector< CUnitType * > > & AiHelper::Train | ( | ) |
The index is the unit that should be trained, giving a table of all units/buildings which could train this unit.
std::vector< std::vector< CUnitType * > > & AiHelper::UnitLimit | ( | ) |
The index is the unit-limit that should be solved, giving a table of all units/buildings which could reduce this unit-limit.
std::vector< std::vector< CUnitType * > > & AiHelper::Upgrade | ( | ) |
The index is the upgrade that should be made, giving a table of all units/buildings which could do the upgrade.