31 namespace game_events {
class manager;
class wmi_manager; }
33 namespace pathfind {
class manager; }
36 namespace actions {
class undo_list; }
114 template<
typename... Arguments >
Managing the AIs lifecycle - headers TODO: Refactor history handling and internal commands.
Class that manages AIs for all sides and manages AI redeployment.
A config object defines a single node in a WML file, with access to child nodes.
Abstract class for exposing game data that doesn't depend on the GUI, however which for historical re...
void write(config &cfg) const
utils::optional< end_level_data > end_level_data_
bool remove_from_carryover_on_defeat_
void add_side_wml(config cfg)
creates a new side during a game.
const std::unique_ptr< reports > reports_
bool in_phase(game_data::PHASE phase, Arguments ... args) const
bool has_next_scenario() const
Checks whether this is not the last scenario (usually of a campaign)
int server_request_number_
bool can_recruit_from(const map_location &leader_loc, int side) const
Checks to see if a leader at leader_loc could recruit somewhere.
bool can_recruit_on(const map_location &leader_loc, const map_location &recruit_loc, int side) const
Checks to see if a leader at leader_loc could recruit on recruit_loc.
bool side_can_recruit_on(int side, map_location loc) const
Checks if any of the sides leaders can recruit at a location.
bool in_phase(game_data::PHASE phase) const
void set_game_display(game_display *)
std::unique_ptr< game_lua_kernel > lua_kernel_
virtual const game_data * get_game_data() const override
Inherited from filter_context.
game_state(const config &level, play_controller &)
virtual const tod_manager & get_tod_man() const override
Inherited from filter_context.
std::unique_ptr< pathfind::manager > pathfind_manager_
const std::unique_ptr< actions::undo_list > undo_stack_
undo_stack_ is never nullptr.
void init(const config &level, play_controller &)
bool do_healing_
True if healing should be done at the beginning of the next side turn.
virtual game_lua_kernel * get_lua_kernel() const override
Inherited from filter_context.
virtual const display_context & get_disp_context() const override
Inherited from filter_context.
void place_sides_in_preferred_locations(const config &level)
const std::unique_ptr< game_events::manager > events_manager_
game_events::wmi_manager & get_wml_menu_items()
bool victory_when_enemies_defeated_
This class represents a single unit of a specific type.
Unit and team statistics.
Encapsulates the map of the game.