mp::create Class Reference

#include <multiplayer_create.hpp>

Inheritance diagram for mp::create:

Inheritance graph
[legend]
Collaboration diagram for mp::create:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 create (game_display &dist, const config &game_config, chat &c, config &gamelist)
 ~create ()
parametersget_parameters ()

Protected Member Functions

virtual void layout_children (const SDL_Rect &rect)
virtual void process_event ()
virtual void hide_children (bool hide=true)

Private Member Functions

void update_minimap (void)

Private Attributes

tooltips::manager tooltip_manager_
int map_selection_
int mp_countdown_init_time_
int mp_countdown_reservoir_time_
std::vector< std::string > user_maps_
std::vector< std::string > map_options_
std::vector< size_t > map_index_
 Due to maps not available the index of the selected map and mp scenarios is not 1:1 so we use a lookup table.
gui::menu maps_menu_
gui::slider turns_slider_
gui::label turns_label_
gui::button countdown_game_
gui::slider countdown_init_time_slider_
gui::label countdown_init_time_label_
gui::slider countdown_reservoir_time_slider_
gui::label countdown_reservoir_time_label_
gui::label countdown_turn_bonus_label_
gui::slider countdown_turn_bonus_slider_
gui::label countdown_action_bonus_label_
gui::slider countdown_action_bonus_slider_
gui::slider village_gold_slider_
gui::label village_gold_label_
gui::slider xp_modifier_slider_
gui::label xp_modifier_label_
gui::label name_entry_label_
gui::label num_players_label_
gui::label map_size_label_
gui::label era_label_
gui::label map_label_
gui::button use_map_settings_
gui::button random_start_time_
gui::button fog_game_
gui::button shroud_game_
gui::button observers_game_
gui::button cancel_game_
gui::button launch_game_
gui::button regenerate_map_
gui::button generator_settings_
gui::button password_button_
gui::combo era_combo_
gui::combo vision_combo_
gui::textbox name_entry_
util::scoped_ptr
< surface_restorer
minimap_restorer_
SDL_Rect minimap_rect_
util::scoped_ptr< map_generatorgenerator_
parameters parameters_

Classes

struct  parameters


Detailed Description

Definition at line 30 of file multiplayer_create.hpp.


Constructor & Destructor Documentation

mp::create::create ( game_display dist,
const config game_config,
chat c,
config gamelist 
)

mp::create::~create (  ) 


Member Function Documentation

create::parameters & mp::create::get_parameters (  ) 

void mp::create::layout_children ( const SDL_Rect &  rect  )  [protected, virtual]

void mp::create::process_event (  )  [protected, virtual]

Todo:
This might not be 100% correct, but at the moment it is not possible to show the fog and shroud per player.

Reimplemented from mp::ui.

Definition at line 308 of file multiplayer_create.cpp.

References _, config::add_child(), tooltips::add_tooltip(), util::scoped_resource< T, ReleasePolicy >::assign(), buf, cancel_game_, gui::button::checked(), config::child(), config::clear(), tooltips::clear_tooltips(), countdown_action_bonus_label_, countdown_action_bonus_slider_, countdown_game_, countdown_init_time_label_, countdown_init_time_slider_, countdown_reservoir_time_label_, countdown_reservoir_time_slider_, countdown_turn_bonus_label_, countdown_turn_bonus_slider_, mp::ui::CREATE, create_map_generator(), twml_exception::dev_message, mp::ui::disp_, gui::menu::double_clicked(), draw_centered_on_background(), t_string::empty(), gui::button::enable(), gui::slider::enable(), gui::widget::enable(), ERR_CF, preferences::fog(), fog_game_, mp::ui::game_config(), generator_, generator_settings_, config::get_attribute(), config::get_children(), settings::get_turns(), settings::get_village_gold(), settings::get_xp_modifier(), image::getMinimap(), gui::widget::hide(), launch_game_, lexical_cast(), map, map_index_, map_selection_, map_size_label_, maps_menu_, minimap_rect_, minimap_restorer_, mp_countdown_init_time_, mp_countdown_reservoir_time_, gamemap::incorrect_format_exception::msg_, N_, name_entry_, gui::menu::nitems(), num_players_label_, gui::OK_ONLY, parameters_, mp::create::parameters::password, password_button_, pos, gui::button::pressed(), tooltips::process(), mp::ui::QUIT, preferences::random_start_time(), random_start_time_, read_map(), regenerate_map_, mp::create::parameters::saved_game, mp::create::parameters::scenario_data, gui::menu::selection(), gui::button::set_check(), mp::ui::set_result(), gui::label::set_text(), gui::slider::set_value(), gui::show_dialog(), preferences::shroud(), shroud_game_, gui::textbox::text(), preferences::turns(), turns_label_, turns_slider_, settings::use_fog(), use_map_settings_, settings::use_random_start_time(), settings::use_shroud(), user_maps_, gui::slider::value(), gui::widget::video(), preferences::village_gold(), village_gold_label_, village_gold_slider_, cursor::WAIT, preferences::xp_modifier(), xp_modifier_label_, and xp_modifier_slider_.

void mp::create::hide_children ( bool  hide = true  )  [protected, virtual]

void mp::create::update_minimap ( void   )  [private]


Member Data Documentation

Definition at line 117 of file multiplayer_create.hpp.

Definition at line 118 of file multiplayer_create.hpp.

Referenced by process_event(), and ~create().

Definition at line 119 of file multiplayer_create.hpp.

Referenced by process_event().

Definition at line 120 of file multiplayer_create.hpp.

Referenced by process_event().

std::vector<std::string> mp::create::user_maps_ [private]

Definition at line 123 of file multiplayer_create.hpp.

Referenced by create(), and process_event().

std::vector<std::string> mp::create::map_options_ [private]

Definition at line 124 of file multiplayer_create.hpp.

Referenced by create(), and layout_children().

std::vector<size_t> mp::create::map_index_ [private]

Due to maps not available the index of the selected map and mp scenarios is not 1:1 so we use a lookup table.

Definition at line 127 of file multiplayer_create.hpp.

Referenced by create(), and process_event().

Definition at line 129 of file multiplayer_create.hpp.

Referenced by create(), hide_children(), layout_children(), and process_event().

Definition at line 131 of file multiplayer_create.hpp.

Referenced by hide_children(), layout_children(), and process_event().

Definition at line 134 of file multiplayer_create.hpp.

Referenced by hide_children(), layout_children(), and process_event().

Definition at line 136 of file multiplayer_create.hpp.

Referenced by hide_children(), layout_children(), and process_event().

Definition at line 137 of file multiplayer_create.hpp.

Referenced by hide_children(), layout_children(), and process_event().

Definition at line 139 of file multiplayer_create.hpp.

Referenced by hide_children(), layout_children(), and process_event().

Definition at line 142 of file multiplayer_create.hpp.

Referenced by hide_children(), layout_children(), and process_event().

Definition at line 144 of file multiplayer_create.hpp.

Referenced by hide_children(), layout_children(), and process_event().

Definition at line 146 of file multiplayer_create.hpp.

Referenced by hide_children(), and layout_children().

Definition at line 147 of file multiplayer_create.hpp.

Referenced by hide_children(), layout_children(), and process_event().

Definition at line 148 of file multiplayer_create.hpp.

Referenced by hide_children(), layout_children(), and process_event().

Definition at line 149 of file multiplayer_create.hpp.

Referenced by hide_children(), and layout_children().

Definition at line 150 of file multiplayer_create.hpp.

Referenced by hide_children(), and layout_children().

Definition at line 156 of file multiplayer_create.hpp.

Referenced by create(), get_parameters(), hide_children(), and layout_children().

Definition at line 157 of file multiplayer_create.hpp.

Referenced by hide_children(), layout_children(), and process_event().

Definition at line 158 of file multiplayer_create.hpp.

Referenced by hide_children(), layout_children(), and process_event().

Definition at line 159 of file multiplayer_create.hpp.

Referenced by hide_children(), layout_children(), and process_event().

Definition at line 160 of file multiplayer_create.hpp.

Referenced by hide_children(), layout_children(), and process_event().

Definition at line 161 of file multiplayer_create.hpp.

Referenced by layout_children(), and process_event().

Definition at line 164 of file multiplayer_create.hpp.

Referenced by create(), get_parameters(), hide_children(), and layout_children().

Definition at line 167 of file multiplayer_create.hpp.

Referenced by hide_children(), and process_event().

SDL_Rect mp::create::minimap_rect_ [private]

Definition at line 168 of file multiplayer_create.hpp.

Referenced by hide_children(), layout_children(), and process_event().

Definition at line 170 of file multiplayer_create.hpp.

Referenced by hide_children(), and process_event().

Definition at line 172 of file multiplayer_create.hpp.

Referenced by get_parameters(), hide_children(), process_event(), and ~create().


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs