15 #ifndef INCL_GAME_STATE_HPP_
16 #define INCL_GAME_STATE_HPP_
26 #include <boost/scoped_ptr.hpp>
27 #include <boost/shared_ptr.hpp>
34 namespace game_events {
class manager;
class wmi_container; }
37 namespace pathfind {
class manager; }
39 namespace wb {
class manager; }
41 namespace actions {
class undo_list; }
virtual const display_context & get_disp_context() const
bool has_human_sides() const
int server_request_number_
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.
virtual const tod_manager & get_tod_man() const
boost::scoped_ptr< pathfind::manager > pathfind_manager_
game_state(const config &level, play_controller &, const tdata_cache &tdata)
Unit and team statistics.
virtual const game_data * get_game_data() const
boost::scoped_ptr< game_lua_kernel > lua_kernel_
bool side_can_recruit_on(int side, map_location loc) const
Checks if any of the sides leaders can recruit at a location.
boost::scoped_ptr< game_events::manager > events_manager_
boost::scoped_ptr< actions::undo_list > undo_stack_
undo_stack_ is never nullptr.
Encapsulates the map of the game.
void write(config &cfg) const
A container of wml_menu_item.
boost::optional< end_level_data > t_possible_end_level_data
t_possible_end_level_data end_level_data_
bool can_recruit_from(const map_location &leader_loc, int side) const
Checks to see if a leader at leader_loc could recruit somewhere.
void init(const config &level, play_controller &)
void set_game_display(game_display *)
void place_sides_in_preferred_locations(const config &level)
virtual game_lua_kernel * get_lua_kernel() const
A config object defines a single node in a WML file, with access to child nodes.
boost::scoped_ptr< reports > reports_
game_events::wmi_container & get_wml_menu_items()