AI parameters. More...
#include <configuration.hpp>
Public Member Functions | |
description () | |
Public Attributes | |
t_string | text |
std::string | id |
int | mp_rank |
config | cfg |
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.
|
inline |
Definition at line 48 of file configuration.hpp.
config ai::description::cfg |
Definition at line 59 of file configuration.hpp.
Referenced by ai::configuration::init().
std::string ai::description::id |
Definition at line 57 of file configuration.hpp.
Referenced by ai::configuration::init().
int ai::description::mp_rank |
Definition at line 58 of file configuration.hpp.
Referenced by ai::configuration::init().
t_string ai::description::text |
Definition at line 56 of file configuration.hpp.
Referenced by ai::configuration::init().