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

List of all members
AiHelper Class Reference

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

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 Function Documentation

◆ Build()

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.

◆ Depots()

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.

◆ Equiv()

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.

◆ Refinery()

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.

◆ Repair()

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.

◆ Research()

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.

◆ SingleResearch()

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.

◆ Train()

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.

◆ UnitLimit()

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.

◆ Upgrade()

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 files:
(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.