Public Member Functions | Public Attributes

ai::description Struct Reference

AI parameters. More...

#include <configuration.hpp>

Collaboration diagram for ai::description:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 description ()

Public Attributes

std::string text
std::string id
config cfg

Detailed Description

AI parameters.

class to deal with AI parameters. It is an implementation detail. We need implementation which will allow easy access to all the parameters which match any of the pre-defined set of filters such as 'select from ai_parameters where time_of_day=first watch' or 'select from ai_parameters where active(current_game_state)=true' it should be noted that there may be several variables with a same name but different filters. the proposed rules, in general, are: 1) scenario_parameter_in_SIDE_section > scenario_parameter_in_AI_section > default_value then, if (1) is equal: 2) use scenario-creator supplied priority ( 'not set' = 0) then, if (2) is equal: 3) more restricted parameter > less restricted parameter then, if (3) is equal: use any and loudly complain.

Definition at line 46 of file configuration.hpp.


Constructor & Destructor Documentation

ai::description::description (  )  [inline]

Definition at line 48 of file configuration.hpp.


Member Data Documentation

Definition at line 57 of file configuration.hpp.

std::string ai::description::id

Definition at line 56 of file configuration.hpp.

Referenced by mp::connect::side::init_ai_algorithm_combo().

std::string ai::description::text

Definition at line 55 of file configuration.hpp.

Referenced by mp::connect::side::init_ai_algorithm_combo().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:17:08 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs