The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
play_controller Class Referenceabstract

#include <play_controller.hpp>

Inheritance diagram for play_controller:
Inheritance graph

Classes

class  hotkey_handler
 
struct  scoped_savegame_snapshot
 

Public Member Functions

 play_controller (const config &level, saved_game &state_of_game, const config &game_config, const tdata_cache &tdata, CVideo &video, bool skip_replay)
 
virtual ~play_controller ()
 
virtual void handle_generic_event (const std::string &)
 
bool can_undo () const
 
bool can_redo () const
 
void undo ()
 
void redo ()
 
void load_game ()
 
void save_game ()
 
void save_game_auto (const std::string &filename)
 
void save_replay ()
 
void save_replay_auto (const std::string &filename)
 
void save_map ()
 
void init_side_begin ()
 
void maybe_do_init_side ()
 Called by turn_info::process_network_data() or init_side() to call do_init_side() if necessary. More...
 
void do_init_side ()
 Called by replay handler or init_side() to do actual work for turn change. More...
 
void init_side_end ()
 
virtual void force_end_turn ()=0
 
virtual void check_objectives ()=0
 
virtual void on_not_observer ()=0
 
virtual void process_oos (const std::string &msg) const
 Asks the user whether to continue on an OOS error. More...
 
void set_end_level_data (const end_level_data &data)
 
void reset_end_level_data ()
 
bool is_regular_game_end () const
 
const end_level_dataget_end_level_data_const () const
 
const std::vector< team > & get_teams_const () const
 
const unit_mapget_units_const () const
 
const gamemapget_map_const () const
 
const tod_managerget_tod_manager_const () const
 
bool is_observer () const
 
game_stategamestate ()
 
const game_stategamestate () const
 
void check_victory ()
 Checks to see if a side has won. More...
 
size_t turn () const
 
int current_side () const
 Returns the number of the side whose turn it is. More...
 
config to_config () const
 Builds the snapshot config from members and their respective configs. More...
 
bool is_skipping_replay () const
 
void toggle_skipping_replay ()
 
bool is_linger_mode () const
 
void do_autosave ()
 
void do_consolesave (const std::string &filename)
 
events::mouse_handlerget_mouse_handler_base ()
 Get a reference to a mouse handler member a derived class uses. More...
 
events::menu_handlerget_menu_handler ()
 
boost::shared_ptr< wb::managerget_whiteboard ()
 
const mp_game_settingsget_mp_settings ()
 
const game_classificationget_classification ()
 
int get_server_request_number () const
 
void increase_server_request_number ()
 
game_events::t_pumppump ()
 
int get_ticks ()
 
virtual soundsource::managerget_soundsource_man ()
 Get (optionally) a soundsources manager a derived class uses. More...
 
virtual plugins_contextget_plugins_context ()
 Get (optionally) a plugins context a derived class uses. More...
 
hotkey::command_executorget_hotkey_command_executor ()
 Get (optionally) a command executor to handle context menu events. More...
 
actions::undo_listget_undo_stack ()
 
bool is_browsing () const override
 
bool is_lingering () const
 
virtual bool is_replay ()
 
t_string get_scenario_name ()
 
bool get_disallow_recall ()
 
std::string theme ()
 
virtual bool should_return_to_play_side ()
 
void maybe_throw_return_to_play_side ()
 
virtual void play_side_impl ()
 
void play_side ()
 
teamcurrent_team ()
 
const teamcurrent_team () const
 
bool can_use_synced_wml_menu () const
 
std::set< std::stringall_players () const
 
int ticks () const
 
game_displayget_display ()
 Get a reference to a display member a derived class uses. More...
 
void update_savegame_snapshot () const
 
void update_gui_to_player (const int team_index, const bool observe=false)
 Changes the UI for this client to the passed side index. More...
 
virtual bool is_networked_mp () const
 
virtual void send_to_wesnothd (const config &, const std::string &="unknown") const
 
virtual bool recieve_from_wesnothd (config &) const
 
- Public Member Functions inherited from controller_base
 controller_base (const config &game_config, CVideo &video)
 
virtual ~controller_base ()
 
void play_slice (bool is_delay_enabled=true)
 
void apply_keyboard_scroll (int x, int y)
 
void set_scroll_up (bool on)
 
void set_scroll_down (bool on)
 
void set_scroll_left (bool on)
 
void set_scroll_right (bool on)
 
- Public Member Functions inherited from events::sdl_handler
virtual void process_event ()
 
virtual void draw ()
 
virtual void volatile_draw ()
 
virtual void volatile_undraw ()
 
virtual bool requires_event_focus (const SDL_Event *=nullptr) const
 
virtual void process_help_string (int, int)
 
virtual void process_tooltip_string (int, int)
 
virtual void join ()
 
virtual void join (context &c)
 
virtual void join_same (sdl_handler *parent)
 
virtual void leave ()
 
virtual void join_global ()
 
virtual void leave_global ()
 
- Public Member Functions inherited from events::observer
virtual ~observer ()
 
- Public Member Functions inherited from quit_confirmation
 quit_confirmation (const std::function< bool()> &prompt=&quit_confirmation::default_prompt)
 
 ~quit_confirmation ()
 

Protected Member Functions

void play_slice_catch ()
 
bool have_keyboard_focus ()
 Derived classes should override this to return false when arrow keys should not scroll the map, hotkeys not processed etc, for example when a textbox is active. More...
 
void process_focus_keydown_event (const SDL_Event &event)
 Process keydown (only when the general map display does not have focus). More...
 
void process_keydown_event (const SDL_Event &event)
 Process keydown (always). More...
 
void process_keyup_event (const SDL_Event &event)
 Process keyup (always). More...
 
void init_managers ()
 
void fire_preload ()
 preload events cannot be synced More...
 
void fire_prestart ()
 
void fire_start ()
 
void start_game ()
 
virtual void init_gui ()
 
void finish_side_turn ()
 
void finish_turn ()
 
bool enemies_visible () const
 
void enter_textbox ()
 
void tab ()
 
bool is_team_visible (int team_num, bool observer) const
 
int find_last_visible_team () const
 returns 0 if no such team was found. More...
 
actions::undo_listundo_stack ()
 
const actions::undo_listundo_stack () const
 
const std::stringselect_victory_music () const
 
const std::stringselect_defeat_music () const
 
void set_victory_music_list (const std::string &list)
 
void set_defeat_music_list (const std::string &list)
 
void reset_gamestate (const config &level, int replay_pos)
 
virtual void sync_end_turn ()
 
virtual void check_time_over ()
 
virtual void update_viewing_player ()=0
 
void play_turn ()
 
- Protected Member Functions inherited from controller_base
virtual std::vector< std::stringadditional_actions_pressed ()
 
bool handle_scroll (int mousex, int mousey, int mouse_flags, double joystickx, double joysticky)
 Handle scrolling by keyboard, joystick and moving mouse near map edges. More...
 
void handle_event (const SDL_Event &event)
 Process mouse- and keypress-events from SDL. More...
 
void handle_window_event (const SDL_Event &)
 
virtual void show_menu (const std::vector< std::string > &items_arg, int xloc, int yloc, bool context_menu, display &disp)
 
virtual void execute_action (const std::vector< std::string > &items_arg, int xloc, int yloc, bool context_menu)
 
virtual bool in_context_menu (hotkey::HOTKEY_COMMAND command) const
 
- Protected Member Functions inherited from video2::draw_layering
 draw_layering (const bool auto_join=true)
 
virtual ~draw_layering ()
 
- Protected Member Functions inherited from events::sdl_handler
 sdl_handler (const bool auto_join=true)
 
virtual ~sdl_handler ()
 
virtual std::vector
< sdl_handler * > 
handler_members ()
 

Protected Attributes

const tdata_cachetdata_
 
boost::scoped_ptr< game_stategamestate_
 
config level_
 
saved_gamesaved_game_
 
boost::scoped_ptr
< tooltips::manager
tooltips_manager_
 
boost::shared_ptr< wb::managerwhiteboard_manager_
 
boost::scoped_ptr
< plugins_context
plugins_context_
 
font::floating_label_context labels_manager_
 
help::help_manager help_manager_
 
events::mouse_handler mouse_handler_
 
events::menu_handler menu_handler_
 
boost::scoped_ptr< hotkey_handlerhotkey_handler_
 
boost::scoped_ptr
< soundsource::manager
soundsources_manager_
 
persist_manager persist_
 
boost::scoped_ptr< game_displaygui_
 
boost::scoped_ptr
< unit_experience_accelerator
xp_mod_
 
boost::scoped_ptr< const
statistics::scenario_context
statistics_context_
 
boost::scoped_ptr< replayreplay_
 
bool skip_replay_
 
bool linger_
 
bool init_side_done_now_
 Whether we did init sides in this session (false = we did init sides before we reloaded the game). More...
 
bool ignore_replay_errors_
 
bool player_type_changed_
 
- Protected Attributes inherited from controller_base
const configgame_config_
 
CKey key_
 
bool scrolling_
 
bool scroll_up_
 
bool scroll_down_
 
bool scroll_left_
 
bool scroll_right_
 
joystick_manager joystick_manager_
 

Private Member Functions

void init (CVideo &video, const config &level)
 

Private Attributes

const int ticks_
 
bool victory_when_enemies_defeated_
 
bool remove_from_carryover_on_defeat_
 
std::vector< std::stringvictory_music_
 
std::vector< std::stringdefeat_music_
 
hotkey::scope_changer scope_
 

Friends

struct scoped_savegame_snapshot
 

Additional Inherited Members

- Static Public Member Functions inherited from controller_base
static const configget_theme (const config &game_config, std::string theme_name)
 
- Static Public Member Functions inherited from quit_confirmation
static bool quit ()
 Shows the quit confirmation if needed. More...
 
static void quit_to_title ()
 
static void quit_to_desktop ()
 
static bool show_prompt (const std::string &message)
 
static bool default_prompt ()
 

Detailed Description

Definition at line 79 of file play_controller.hpp.

Constructor & Destructor Documentation

play_controller::play_controller ( const config level,
saved_game state_of_game,
const config game_config,
const tdata_cache tdata,
CVideo video,
bool  skip_replay 
)
play_controller::~play_controller ( )
virtual

Definition at line 209 of file play_controller.cpp.

References clear_resources(), and hotkey::delete_all_wml_hotkeys().

Member Function Documentation

std::set< std::string > play_controller::all_players ( ) const

Definition at line 1138 of file play_controller.cpp.

References get_teams_const(), and gui_.

bool play_controller::can_redo ( ) const
bool play_controller::can_undo ( ) const
bool play_controller::can_use_synced_wml_menu ( ) const
virtual void play_controller::check_objectives ( )
pure virtual

Implemented in playsingle_controller.

Referenced by fire_start().

void play_controller::check_time_over ( )
protectedvirtual
void play_controller::check_victory ( )
int play_controller::current_side ( ) const
inline
team & play_controller::current_team ( )
const team & play_controller::current_team ( ) const
void play_controller::do_autosave ( )
void play_controller::do_consolesave ( const std::string filename)
void play_controller::do_init_side ( )
bool play_controller::enemies_visible ( ) const
protected

Definition at line 576 of file play_controller.cpp.

References current_team(), gamestate(), gui_, and team::is_enemy().

void play_controller::enter_textbox ( )
protected
int play_controller::find_last_visible_team ( ) const
protected

returns 0 if no such team was found.

Definition at line 723 of file play_controller.cpp.

References game_state::board_, current_side(), gamestate(), i, is_observer(), is_team_visible(), modulo(), and game_board::teams().

Referenced by playsingle_controller::update_viewing_player().

void play_controller::finish_side_turn ( )
protected
void play_controller::finish_turn ( )
protected
void play_controller::fire_preload ( )
protected

preload events cannot be synced

Definition at line 361 of file play_controller.cpp.

References game_events::t_pump::fire(), game_state::gamedata_, gamestate(), game_data::get_variable(), int(), pump(), and turn().

Referenced by start_game().

void play_controller::fire_prestart ( )
protected
void play_controller::fire_start ( )
protected
virtual void play_controller::force_end_turn ( )
pure virtual
game_state& play_controller::gamestate ( )
inline

Definition at line 163 of file play_controller.hpp.

References gamestate_.

Referenced by playmp_controller::hotkey_handler::can_execute_command(), playsingle_controller::hotkey_handler::can_execute_command(), playsingle_controller::check_objectives(), check_time_over(), check_victory(), events::mouse_handler::current_team(), current_team(), events::mouse_handler::current_unit_attacks_from(), events::mouse_handler::cycle_units(), do_init_side(), playsingle_controller::enable_replay(), enemies_visible(), play_controller::hotkey_handler::execute_command(), play_controller::hotkey_handler::expand_wml_commands(), events::mouse_handler::fill_weapon_choices(), find_last_visible_team(), events::mouse_handler::find_unit(), finish_side_turn(), fire_preload(), fire_prestart(), fire_start(), events::menu_handler::gamestate(), events::mouse_handler::get_adj_enemies(), get_end_level_data_const(), get_map_const(), events::mouse_handler::get_route(), get_server_request_number(), get_teams_const(), get_tod_manager_const(), get_units_const(), play_controller::hotkey_handler::in_context_menu(), increase_server_request_number(), init(), playsingle_controller::init_gui(), init_side_begin(), init_side_end(), is_browsing(), is_observer(), is_regular_game_end(), is_team_visible(), playmp_controller::linger(), playsingle_controller::linger(), maybe_do_init_side(), playmp_controller::maybe_linger(), playsingle_controller::maybe_linger(), events::mouse_handler::mouse_motion(), events::mouse_handler::move_action(), events::mouse_handler::move_unit_along_route(), playsingle_controller::play_scenario(), playsingle_controller::play_scenario_main_loop(), play_side(), replay_controller::play_side_impl(), playsingle_controller::play_side_impl(), play_turn(), process_keyup_event(), pump(), replay_controller::replay_next_turn(), reset_end_level_data(), reset_gamestate(), events::mouse_handler::select_hex(), set_end_level_data(), events::mouse_handler::show_attack_dialog(), events::mouse_handler::show_attack_options(), playsingle_controller::show_turn_dialog(), start_game(), tab(), to_config(), turn(), undo_stack(), events::mouse_handler::unit_in_cycle(), replay_controller::update_viewing_player(), and events::mouse_handler::viewing_team().

const game_state& play_controller::gamestate ( ) const
inline

Definition at line 166 of file play_controller.hpp.

References gamestate_.

const game_classification & play_controller::get_classification ( )
bool play_controller::get_disallow_recall ( )
inline

Definition at line 229 of file play_controller.hpp.

References level_.

Referenced by events::menu_handler::recall().

game_display & play_controller::get_display ( )
virtual
const end_level_data& play_controller::get_end_level_data_const ( ) const
inline
hotkey::command_executor * play_controller::get_hotkey_command_executor ( )
virtual
const gamemap& play_controller::get_map_const ( ) const
inline
events::menu_handler& play_controller::get_menu_handler ( )
inline

Definition at line 199 of file play_controller.hpp.

References menu_handler_.

Referenced by wb::recruit::execute().

events::mouse_handler & play_controller::get_mouse_handler_base ( )
virtual
const mp_game_settings & play_controller::get_mp_settings ( )
plugins_context * play_controller::get_plugins_context ( )
virtual

Get (optionally) a plugins context a derived class uses.

Reimplemented from controller_base.

Definition at line 1051 of file play_controller.cpp.

References plugins_context_.

t_string play_controller::get_scenario_name ( )
inline
int play_controller::get_server_request_number ( ) const
inline

Definition at line 204 of file play_controller.hpp.

References gamestate(), and game_state::server_request_number_.

soundsource::manager * play_controller::get_soundsource_man ( )
virtual

Get (optionally) a soundsources manager a derived class uses.

Reimplemented from controller_base.

Definition at line 1046 of file play_controller.cpp.

References soundsources_manager_.

Referenced by game_lua_kernel::intf_add_sound_source(), game_lua_kernel::intf_get_sound_source(), and game_lua_kernel::intf_remove_sound_source().

const std::vector<team>& play_controller::get_teams_const ( ) const
inline

Definition at line 144 of file play_controller.hpp.

References game_state::board_, gamestate(), and game_board::teams_.

Referenced by all_players(), and can_use_synced_wml_menu().

int play_controller::get_ticks ( )

Definition at line 1041 of file play_controller.cpp.

References ticks_.

const tod_manager& play_controller::get_tod_manager_const ( ) const
inline
actions::undo_list& play_controller::get_undo_stack ( )
inline
const unit_map& play_controller::get_units_const ( ) const
inline

Definition at line 148 of file play_controller.hpp.

References game_state::board_, gamestate(), and game_board::units().

boost::shared_ptr< wb::manager > play_controller::get_whiteboard ( )
virtual void play_controller::handle_generic_event ( const std::string )
inlinevirtual

Implements events::observer.

Reimplemented in playsingle_controller, and playmp_controller.

Definition at line 90 of file play_controller.hpp.

bool play_controller::have_keyboard_focus ( )
protectedvirtual

Derived classes should override this to return false when arrow keys should not scroll the map, hotkeys not processed etc, for example when a textbox is active.

Returns
true when arrow keys should scroll the map, false otherwise

Reimplemented from controller_base.

Definition at line 763 of file play_controller.cpp.

References gui::floating_textbox::active(), events::menu_handler::get_textbox(), and menu_handler_.

void play_controller::increase_server_request_number ( )
inline
void play_controller::init ( CVideo video,
const config level 
)
private
void play_controller::init_gui ( )
protectedvirtual

Reimplemented in playsingle_controller.

Definition at line 403 of file play_controller.cpp.

References gui_.

Referenced by playsingle_controller::init_gui(), and start_game().

void play_controller::init_managers ( )
protected
void play_controller::init_side_begin ( )
void play_controller::init_side_end ( )
bool play_controller::is_browsing ( ) const
overridevirtual
bool play_controller::is_linger_mode ( ) const
inline

Definition at line 193 of file play_controller.hpp.

References linger_.

bool play_controller::is_lingering ( ) const
inline

Definition at line 218 of file play_controller.hpp.

References linger_.

Referenced by can_use_synced_wml_menu().

virtual bool play_controller::is_networked_mp ( ) const
inlinevirtual
bool play_controller::is_observer ( ) const
inline
bool play_controller::is_regular_game_end ( ) const
inline
virtual bool play_controller::is_replay ( )
inlinevirtual

Reimplemented in playsingle_controller.

Definition at line 222 of file play_controller.hpp.

Referenced by init_side_begin(), and maybe_do_init_side().

bool play_controller::is_skipping_replay ( ) const
inline
bool play_controller::is_team_visible ( int  team_num,
bool  observer 
) const
protected
void play_controller::load_game ( )
void play_controller::maybe_do_init_side ( )
void play_controller::maybe_throw_return_to_play_side ( )
inline
virtual void play_controller::on_not_observer ( )
pure virtual
void play_controller::play_side ( )
virtual void play_controller::play_side_impl ( )
inlinevirtual

Reimplemented in playsingle_controller, and playmp_controller.

Definition at line 251 of file play_controller.hpp.

Referenced by play_side().

void play_controller::play_slice_catch ( )
protected
void play_controller::play_turn ( )
protected
void play_controller::process_focus_keydown_event ( const SDL_Event &  event)
protectedvirtual

Process keydown (only when the general map display does not have focus).

Reimplemented from controller_base.

Definition at line 768 of file play_controller.cpp.

References gui::floating_textbox::close(), enter_textbox(), events::menu_handler::get_textbox(), gui_, menu_handler_, and tab().

void play_controller::process_keydown_event ( const SDL_Event &  event)
protectedvirtual

Process keydown (always).

Overridden in derived classes

Reimplemented from controller_base.

Definition at line 779 of file play_controller.cpp.

References whiteboard_manager_.

void play_controller::process_keyup_event ( const SDL_Event &  event)
protectedvirtual
void play_controller::process_oos ( const std::string msg) const
virtual

Asks the user whether to continue on an OOS error.

Exceptions
quit_game_exceptionIf the user wants to abort.

Reimplemented in playmp_controller.

Definition at line 992 of file play_controller.cpp.

References _(), gui_, game_config::ignore_replay_errors, ignore_replay_errors_, game_logic::msg(), save(), savegame::savegame::save_game_interactive(), saved_game_, and gui::YES_NO.

Referenced by replay::process_error().

game_events::t_pump & play_controller::pump ( )
virtual bool play_controller::recieve_from_wesnothd ( config ) const
inlinevirtual

Reimplemented in playmp_controller.

Definition at line 271 of file play_controller.hpp.

Referenced by playsingle_controller::playsingle_controller().

void play_controller::redo ( )
void play_controller::reset_end_level_data ( )
inline

Definition at line 135 of file play_controller.hpp.

References game_state::end_level_data_, and gamestate().

void play_controller::reset_gamestate ( const config level,
int  replay_pos 
)
protected
void play_controller::save_game ( )
void play_controller::save_game_auto ( const std::string filename)
void play_controller::save_map ( )
void play_controller::save_replay ( )
void play_controller::save_replay_auto ( const std::string filename)
const std::string & play_controller::select_defeat_music ( ) const
protected

Definition at line 913 of file play_controller.cpp.

References defeat_music_.

Referenced by playsingle_controller::play_scenario().

const std::string & play_controller::select_victory_music ( ) const
protected

Definition at line 906 of file play_controller.cpp.

References victory_music_.

Referenced by playsingle_controller::play_scenario().

virtual void play_controller::send_to_wesnothd ( const config ,
const std::string = "unknown" 
) const
inlinevirtual
void play_controller::set_defeat_music_list ( const std::string list)
protected
void play_controller::set_end_level_data ( const end_level_data data)
inline
void play_controller::set_victory_music_list ( const std::string list)
protected
virtual bool play_controller::should_return_to_play_side ( )
inlinevirtual

Reimplemented in playsingle_controller.

Definition at line 239 of file play_controller.hpp.

References is_regular_game_end().

Referenced by maybe_throw_return_to_play_side(), and play_slice_catch().

void play_controller::start_game ( )
protected
virtual void play_controller::sync_end_turn ( )
inlineprotectedvirtual

Reimplemented in playsingle_controller.

Definition at line 369 of file play_controller.hpp.

Referenced by play_side().

void play_controller::tab ( )
protected
std::string play_controller::theme ( )
inline
int play_controller::ticks ( ) const
inline
config play_controller::to_config ( ) const
void play_controller::toggle_skipping_replay ( )
inline
size_t play_controller::turn ( ) const
inline
void play_controller::undo ( )
actions::undo_list& play_controller::undo_stack ( )
inlineprotected
const actions::undo_list& play_controller::undo_stack ( ) const
inlineprotected

Definition at line 338 of file play_controller.hpp.

References gamestate(), and game_state::undo_stack_.

void play_controller::update_gui_to_player ( const int  team_index,
const bool  observe = false 
)

Changes the UI for this client to the passed side index.

Definition at line 1008 of file play_controller.cpp.

References gui_.

Referenced by init_side_begin(), playmp_controller::linger(), replay_controller::update_viewing_player(), and playsingle_controller::update_viewing_player().

void play_controller::update_savegame_snapshot ( ) const
virtual void play_controller::update_viewing_player ( )
protectedpure virtual

Implemented in playsingle_controller.

Referenced by play_side().

Friends And Related Function Documentation

friend struct scoped_savegame_snapshot
friend

Definition at line 279 of file play_controller.hpp.

Member Data Documentation

std::vector<std::string> play_controller::defeat_music_
private

Definition at line 362 of file play_controller.hpp.

Referenced by select_defeat_music(), and set_defeat_music_list().

boost::scoped_ptr<game_state> play_controller::gamestate_
protected
boost::scoped_ptr<game_display> play_controller::gui_
protected

Definition at line 334 of file play_controller.hpp.

Referenced by playsingle_controller::after_human_turn(), all_players(), playsingle_controller::before_human_turn(), can_use_synced_wml_menu(), playsingle_controller::check_objectives(), check_time_over(), check_victory(), do_autosave(), do_consolesave(), playmp_controller::do_idle_notification(), playsingle_controller::do_idle_notification(), playsingle_controller::end_turn_enable(), enemies_visible(), enter_textbox(), fire_prestart(), get_display(), playmp_controller::handle_generic_event(), init(), playsingle_controller::init_gui(), init_gui(), init_managers(), init_side_begin(), init_side_end(), playmp_controller::linger(), playsingle_controller::linger(), load_game(), playmp_controller::maybe_linger(), playsingle_controller::play_ai_turn(), playmp_controller::play_human_turn(), playsingle_controller::play_human_turn(), playmp_controller::play_idle_loop(), playsingle_controller::play_idle_loop(), playmp_controller::play_linger_turn(), playmp_controller::play_network_turn(), playsingle_controller::play_scenario(), playsingle_controller::play_scenario_init(), play_side(), play_turn(), process_focus_keydown_event(), process_keyup_event(), playmp_controller::process_oos(), process_oos(), playmp_controller::remove_blindfold(), playmp_controller::reset_end_scenario_button(), reset_gamestate(), save_game(), save_game_auto(), save_replay(), save_replay_auto(), playmp_controller::set_end_scenario_button(), playsingle_controller::show_turn_dialog(), start_game(), tab(), to_config(), update_gui_to_player(), playsingle_controller::update_viewing_player(), and playmp_controller::wait_for_upload().

help::help_manager play_controller::help_manager_
protected

Definition at line 326 of file play_controller.hpp.

boost::scoped_ptr<hotkey_handler> play_controller::hotkey_handler_
protected
bool play_controller::ignore_replay_errors_
mutableprotected

Definition at line 367 of file play_controller.hpp.

Referenced by playmp_controller::process_oos(), and process_oos().

bool play_controller::init_side_done_now_
protected

Whether we did init sides in this session (false = we did init sides before we reloaded the game).

Definition at line 347 of file play_controller.hpp.

Referenced by playsingle_controller::before_human_turn(), do_init_side(), and init_side_end().

font::floating_label_context play_controller::labels_manager_
protected

Definition at line 325 of file play_controller.hpp.

config play_controller::level_
protected
bool play_controller::linger_
protected
events::menu_handler play_controller::menu_handler_
protected

Definition at line 328 of file play_controller.hpp.

Referenced by playsingle_controller::hotkey_handler::ai_formula(), playsingle_controller::hotkey_handler::can_execute_command(), play_controller::hotkey_handler::can_execute_command(), playsingle_controller::hotkey_handler::change_side(), playsingle_controller::hotkey_handler::clear_labels(), playsingle_controller::hotkey_handler::clear_messages(), playsingle_controller::hotkey_handler::continue_move(), playsingle_controller::hotkey_handler::create_unit(), playsingle_controller::hotkey_handler::custom_command(), playsingle_controller::end_turn(), playsingle_controller::hotkey_handler::end_unit_turn(), enter_textbox(), playsingle_controller::execute_gotos(), get_menu_handler(), play_controller::hotkey_handler::goto_leader(), have_keyboard_focus(), init(), playsingle_controller::hotkey_handler::kill_unit(), playsingle_controller::hotkey_handler::label_settings(), playsingle_controller::hotkey_handler::label_terrain(), play_controller::hotkey_handler::objectives(), play_controller::hotkey_handler::preferences(), process_focus_keydown_event(), playsingle_controller::hotkey_handler::recall(), playsingle_controller::hotkey_handler::recruit(), playsingle_controller::hotkey_handler::rename_unit(), playsingle_controller::hotkey_handler::repeat_recruit(), save_map(), play_controller::hotkey_handler::search(), playmp_controller::hotkey_handler::shout(), play_controller::hotkey_handler::show_chat_log(), play_controller::hotkey_handler::show_enemy_moves(), play_controller::hotkey_handler::show_help(), play_controller::hotkey_handler::show_statistics(), playmp_controller::hotkey_handler::speak(), play_controller::hotkey_handler::status_table(), tab(), play_controller::hotkey_handler::terrain_description(), play_controller::hotkey_handler::toggle_ellipses(), play_controller::hotkey_handler::toggle_grid(), playsingle_controller::hotkey_handler::toggle_shroud_updates(), play_controller::hotkey_handler::unit_description(), playsingle_controller::hotkey_handler::unit_hold_position(), play_controller::hotkey_handler::unit_list(), playsingle_controller::hotkey_handler::update_shroud_now(), playsingle_controller::hotkey_handler::user_command(), playmp_controller::hotkey_handler::whisper(), and playsingle_controller::hotkey_handler::whiteboard_suppose_dead().

events::mouse_handler play_controller::mouse_handler_
protected

Definition at line 327 of file play_controller.hpp.

Referenced by playsingle_controller::hotkey_handler::can_execute_command(), play_controller::hotkey_handler::can_execute_command(), playsingle_controller::hotkey_handler::change_side(), playsingle_controller::hotkey_handler::continue_move(), playsingle_controller::hotkey_handler::create_unit(), play_controller::hotkey_handler::cycle_back_units(), play_controller::hotkey_handler::cycle_units(), play_controller::hotkey_handler::deselect_hex(), playsingle_controller::hotkey_handler::end_unit_turn(), enter_textbox(), play_controller::hotkey_handler::execute_command(), playsingle_controller::execute_gotos(), play_controller::hotkey_handler::expand_wml_commands(), finish_side_turn(), get_mouse_handler_base(), play_controller::hotkey_handler::in_context_menu(), init(), init_side_begin(), playsingle_controller::hotkey_handler::kill_unit(), playsingle_controller::hotkey_handler::label_terrain(), play_controller::hotkey_handler::left_mouse_click(), play_controller::hotkey_handler::move_action(), process_keyup_event(), playsingle_controller::hotkey_handler::recall(), playsingle_controller::hotkey_handler::recruit(), redo(), playsingle_controller::hotkey_handler::repeat_recruit(), play_controller::hotkey_handler::right_mouse_click(), play_controller::hotkey_handler::select_and_action(), play_controller::hotkey_handler::select_hex(), play_controller::hotkey_handler::terrain_description(), undo(), and playsingle_controller::hotkey_handler::unit_hold_position().

persist_manager play_controller::persist_
protected

Definition at line 331 of file play_controller.hpp.

Referenced by play_controller(), and playsingle_controller::play_scenario().

bool play_controller::player_type_changed_
protected
boost::scoped_ptr<plugins_context> play_controller::plugins_context_
protected

Definition at line 322 of file play_controller.hpp.

Referenced by get_plugins_context(), and init().

bool play_controller::remove_from_carryover_on_defeat_
private

Definition at line 360 of file play_controller.hpp.

Referenced by check_victory().

boost::scoped_ptr<replay> play_controller::replay_
protected

Definition at line 338 of file play_controller.hpp.

Referenced by maybe_do_init_side(), and play_controller().

saved_game& play_controller::saved_game_
protected
hotkey::scope_changer play_controller::scope_
private

Definition at line 364 of file play_controller.hpp.

bool play_controller::skip_replay_
protected
boost::scoped_ptr<soundsource::manager> play_controller::soundsources_manager_
protected
boost::scoped_ptr<const statistics::scenario_context> play_controller::statistics_context_
protected

Definition at line 336 of file play_controller.hpp.

const tdata_cache& play_controller::tdata_
protected

Definition at line 310 of file play_controller.hpp.

Referenced by init(), and reset_gamestate().

const int play_controller::ticks_
private

Definition at line 306 of file play_controller.hpp.

Referenced by get_ticks(), and ticks().

boost::scoped_ptr<tooltips::manager> play_controller::tooltips_manager_
protected

Definition at line 316 of file play_controller.hpp.

Referenced by init_managers().

std::vector<std::string> play_controller::victory_music_
private

Definition at line 361 of file play_controller.hpp.

Referenced by select_victory_music(), and set_victory_music_list().

bool play_controller::victory_when_enemies_defeated_
private

Definition at line 359 of file play_controller.hpp.

Referenced by check_victory().

boost::shared_ptr<wb::manager> play_controller::whiteboard_manager_
protected
boost::scoped_ptr<unit_experience_accelerator> play_controller::xp_mod_
protected

Definition at line 335 of file play_controller.hpp.


The documentation for this class was generated from the following files: