The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
ai::description Struct Reference

AI parameters. More...

#include <configuration.hpp>

Public Member Functions

 description ()
 

Public Attributes

t_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 44 of file configuration.hpp.

Constructor & Destructor Documentation

ai::description::description ( )
inline

Definition at line 46 of file configuration.hpp.

Member Data Documentation

config ai::description::cfg

Definition at line 55 of file configuration.hpp.

Referenced by ai::configuration::init().

std::string ai::description::id

Definition at line 54 of file configuration.hpp.

Referenced by ai::configuration::init().

t_string ai::description::text

Definition at line 53 of file configuration.hpp.

Referenced by ai::configuration::init().


The documentation for this struct was generated from the following file: