45 virtual std::string
description()
const {
return _(
"waiting for^input"); }
86 std::map<int, config>
res_;
A config object defines a single node in a WML file, with access to child nodes.
events::generic_event changed_event_
bool waiting() const
Note: currently finished() does not imply !waiting() so you may need to check both.
std::string wait_message_
user_choice_manager(const std::string &name, const mp_sync::user_choice &uch, const std::set< int > &sides)
void update_local_choice()
std::set< int > required_
const mp_sync::user_choice & uch_
void process(events::pump_info &)
Inherited from events::pump_monitor.
static std::map< int, config > get_user_choice_internal(const std::string &name, const mp_sync::user_choice &uch, const std::set< int > &sides)
std::map< int, config > res_
const std::string & wait_message() const
const std::string & tagname_
bool has_local_choice() const
Definitions for the interface to Wesnoth Markup Language (WML).
static std::string _(const char *str)
config get_user_choice(const std::string &name, const user_choice &uch, int side=0)
std::map< int, config > get_user_choice_multiple_sides(const std::string &name, const user_choice &uch, std::set< int > sides)
Performs a choice for multiple sides for WML events.
Interface for querying local choices.
virtual config query_user(int side) const =0
virtual std::string description() const
virtual bool is_visible() const
whether the choice is visible for the user like an advancement choice a non-visible choice is for exa...
virtual config random_choice(int side) const =0