80 std::map<int, config>
res_;
99 {
return required_.size() == res_.size(); }
101 {
return local_choice_ != 0; }
104 {
return local_choice_ == 0 && !
oos_; }
virtual std::string description() const
config get_user_choice(const std::string &name, const user_choice &uch, int side=0)
user_choice_manager(const std::string &name, const mp_sync::user_choice &uch, std::set< int > sides)
void update_local_choice()
std::set< int > required_
const std::string & tagname_
Definitions for the interface to Wesnoth Markup Language (WML).
void process(events::pump_info &)
Inherited from events::pump_monitor.
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 mutiple sides for WML events.
virtual config random_choice(int side) const =0
bool waiting()
Note: currently finished() does not imply !waiting() so you may need to check both.
virtual bool is_visible() const
whether the choice is visible for the user like an advacement choice a non-visible choice is for exam...
Interface for querying local choices.
static std::map< int, config > get_user_choice_internal(const std::string &name, const mp_sync::user_choice &uch, const std::set< int > &sides)
events::generic_event changed_event_
const mp_sync::user_choice & uch_
const std::string & wait_message()
virtual config query_user(int side) const =0
std::string wait_message_
GLuint const GLchar * name
std::map< int, config > res_
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string