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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Attributes | List of all members
AiHelper Class Reference

#include <ai_local.h>

Public Attributes

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 * > > 
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
 

Detailed Description

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.

Member Data Documentation

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.

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.


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.