The parameters used when calculating a terrain-based value. More...
Public Member Functions | |
parameters (int min, int max, int(*eval_fun)(int)=nullptr, bool move=true, bool high=false) | |
Whether we are looking for highest or lowest (unless inverted by the underlying terrain). More... | |
Public Attributes | |
int | min_value |
int | max_value |
The smallest allowable value. More... | |
int | default_value |
The largest allowable value. More... | |
int(* | eval )(int) |
The default value (if no data is available). More... | |
bool | use_move |
Converter for values taken from a config. May be nullptr. More... | |
bool | high_is_good |
Whether to look at underlying movement or defense terrains. More... | |
The parameters used when calculating a terrain-based value.
Definition at line 59 of file movetype.cpp.
|
inline |
Whether we are looking for highest or lowest (unless inverted by the underlying terrain).
Definition at line 70 of file movetype.cpp.
int movetype::terrain_info::parameters::default_value |
The largest allowable value.
Definition at line 63 of file movetype.cpp.
The default value (if no data is available).
Definition at line 65 of file movetype.cpp.
bool movetype::terrain_info::parameters::high_is_good |
Whether to look at underlying movement or defense terrains.
Definition at line 68 of file movetype.cpp.
int movetype::terrain_info::parameters::max_value |
The smallest allowable value.
Definition at line 62 of file movetype.cpp.
int movetype::terrain_info::parameters::min_value |
Definition at line 61 of file movetype.cpp.
bool movetype::terrain_info::parameters::use_move |
Converter for values taken from a config. May be nullptr.
Definition at line 67 of file movetype.cpp.