38 namespace ai {
class ai_context; }
39 namespace pathfind {
struct plain_route; }
55 return left.second > right.second;
81 std::string
evaluate(
const std::string& formula_str);
89 static const int MAX_CALLS = 1000;
91 int set_unit_var_counter_;
92 int continue_counter_;
94 gamestate_change_observer();
95 ~gamestate_change_observer();
97 void handle_generic_event(
const std::string& );
101 bool set_unit_var_check();
103 bool continue_check();
Defines formula ai candidate actions - headers.
A config object defines a single node in a WML file, with access to child nodes.
Helper functions for the object which operates in the context of AI for specific side this is part of...
A small explanation about what's going on here: Each action has access to two game_info objects First...
std::shared_ptr< candidate_action > candidate_action_ptr
std::vector< formula_input > formula_input_vector
std::shared_ptr< const formula > const_formula_ptr
static void msg(const char *act, debug_info &i, const char *to="", const char *result="")
std::shared_ptr< formula > formula_ptr
std::shared_ptr< const formula_callable > const_formula_callable_ptr
std::multiset< unit_formula_pair, unit_formula_compare > unit_formula_set
std::pair< unit_map::unit_iterator, int > unit_formula_pair
Encapsulates the map of the game.
Structure which holds a single route between one location and another.