ai_interface.hpp File Reference

Interface to the AI. More...

#include "formula_callable.hpp"
#include "generic_event.hpp"
#include "pathfind.hpp"
#include "gamestatus.hpp"

Include dependency graph for ai_interface.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ai_interface
struct  ai_interface::info
 info is structure which holds references to all the important objects that an AI might need access to, in order to make and implement its decisions. More...

Functions

std::vector< std::string > get_available_ais ()
 Returns all currently available AIs.
ai_interfacecreate_ai (const std::string &algorithm_name, ai_interface::info &info)
 Create a new AI object with the specified algorithm name.


Detailed Description

Interface to the AI.

Definition in file ai_interface.hpp.


Function Documentation

ai_interface* create_ai ( const std::string &  algorithm_name,
ai_interface::info info 
)

Create a new AI object with the specified algorithm name.

Definition at line 198 of file ai.cpp.

References ai, lg::err, and LOG_STREAM.

Referenced by formula_ai::execute_variant(), formula_ai::make_move(), and playsingle_controller::play_ai_turn().

std::vector<std::string> get_available_ais (  ) 

Returns all currently available AIs.

Definition at line 184 of file ai.cpp.

References python_ai::get_available_scripts().

Referenced by mp::connect::lists_init().


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs