Public Member Functions | Public Attributes

message_user_choice Struct Reference

Inheritance diagram for message_user_choice:
Inheritance graph
[legend]
Collaboration diagram for message_user_choice:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 message_user_choice (const vconfig &c, const unit_map::iterator &s, const vconfig &t, bool ht, const std::vector< std::string > &o)
virtual config query_user () const
virtual config random_choice (rand_rng::simple_rng &) const

Public Attributes

vconfig cfg
unit_map::iterator speaker
vconfig text_input_element
bool has_text_input
const std::vector< std::string > & options

Detailed Description

Definition at line 2789 of file game_events.cpp.


Constructor & Destructor Documentation

message_user_choice::message_user_choice ( const vconfig c,
const unit_map::iterator s,
const vconfig t,
bool  ht,
const std::vector< std::string > &  o 
) [inline]

Definition at line 2797 of file game_events.cpp.


Member Function Documentation

virtual config message_user_choice::query_user (  )  const [inline, virtual]

Todo:
This hack can be removed once gui2 is finished.

Implements mp_sync::user_choice.

Definition at line 2803 of file game_events.cpp.

References gui2::twindow::CANCEL, display::draw(), image::get_image(), has_text_input, display::invalidate_all(), options, resources::screen, gui2::show_wml_message(), event_context::skip_messages, text_input_element, and lg::wml_error.

Referenced by WML_HANDLER_FUNCTION().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual config message_user_choice::random_choice ( rand_rng::simple_rng  )  const [inline, virtual]

Implements mp_sync::user_choice.

Definition at line 2848 of file game_events.cpp.


Member Data Documentation

Definition at line 2791 of file game_events.cpp.

Definition at line 2794 of file game_events.cpp.

Referenced by query_user().

const std::vector<std::string>& message_user_choice::options

Definition at line 2795 of file game_events.cpp.

Referenced by query_user().

Definition at line 2792 of file game_events.cpp.

Definition at line 2793 of file game_events.cpp.

Referenced by query_user().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:13:17 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs