57 const gamemap& get_gamemap()
const;
175 : key_(key), value_(value)
178 const std::string&
key()
const {
return key_; }
197 , backup_formula_(backup)
223 : failed_callable_(callable)
224 , current_unit_location_(loc)
const map_location & loc() const
set_var_callable(const std::string &key, const variant &value)
void get_inputs(formula_input_vector &inputs) const override
safe_call_result(const_formula_callable_ptr callable, int status, const map_location &loc=map_location())
This class represents a single unit of a specific type.
team_callable(const team &t)
const display_context & board_
const unit_type & get_unit_type() const
std::vector< formula_input > formula_input_vector
config_callable(const config &c)
unit_type_callable(const unit_type &u)
const expression_ptr & get_backup() const
std::shared_ptr< formula_expression > expression_ptr
A single unit type that the player may recruit.
const attack_type & get_attack_type() const
const_formula_callable_ptr failed_callable_
This class stores all the data for a single 'side' (in game nomenclature).
void set_backup_result(const variant &v)
gamemap_callable(const display_context &g)
const config & get_config() const
Encapsulates the map of the game.
const map_location & loc_
Encapsulates the map of the game.
int do_compare(const formula_callable *callable) const override
const variant & get_main() const
variant get_value(const std::string &key) const override
const std::string & key() const
unit_callable(const map_location &loc, const unit &u)
expression_ptr backup_formula_
std::shared_ptr< const formula_callable > const_formula_callable_ptr
location_callable(const map_location &loc)
const map_location & get_location() const
terrain_callable(const display_context &m, const map_location &loc)
A config object defines a single node in a WML file, with access to child nodes.
const map_location current_unit_location_
std::shared_ptr< const attack_type > const_attack_ptr
safe_call_callable(const variant &main, const expression_ptr &backup)
const unit & get_unit() const
const team & get_team() const