The Battle for Wesnoth  1.19.5+dev
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
 
int mp_rank
 
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

◆ description()

ai::description::description ( )
inline

Definition at line 48 of file configuration.hpp.

Member Data Documentation

◆ cfg

config ai::description::cfg

Definition at line 59 of file configuration.hpp.

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

◆ id

std::string ai::description::id

Definition at line 57 of file configuration.hpp.

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

◆ mp_rank

int ai::description::mp_rank

Definition at line 58 of file configuration.hpp.

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

◆ text

t_string ai::description::text

Definition at line 56 of file configuration.hpp.

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


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