25 , playmp_controller_(pc)
39 playmp_controller_.start_network();
43 playmp_controller_.stop_network();
56 return playmp_controller_.is_host() || !has_next_scenario;
69 res =
is_observer() && playmp_controller_.network_processing_stopped_;
72 res =
is_observer() && !playmp_controller_.network_processing_stopped_;
const std::string & next_scenario() const
events::menu_handler menu_handler_
virtual void whisper() override
hotkey_handler(playmp_controller &, saved_game &)
virtual void start_network() override
virtual void shout() override
virtual bool can_execute_command(const hotkey::hotkey_command &command, int index=-1) const override
Check if a command can be executed.
virtual void stop_network() override
virtual bool can_execute_command(const hotkey::hotkey_command &command, int index=-1) const override
Check if a command can be executed.
An extension of playsingle_controller::hotkey_handler, which has support for MP wesnoth features like...
std::size_t index(const std::string &str, const std::size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.
Stores all information related to functions that can be bound to hotkeys.
HOTKEY_COMMAND command
The command associated with this hotkey.