#include <play_controller.hpp>
Public Member Functions | |
play_controller (const config &level, game_state &state_of_game, int ticks, int num_turns, const config &game_config, CVideo &video, bool skip_replay, bool is_replay) | |
~play_controller () | |
virtual void | play_slice () |
virtual void | handle_generic_event (const std::string &) |
virtual void | objectives () |
virtual void | show_statistics () |
virtual void | unit_list () |
virtual void | status_table () |
virtual void | save_game () |
virtual void | save_replay () |
virtual void | save_map () |
virtual void | load_game () |
virtual void | preferences () |
virtual void | show_chat_log () |
virtual void | show_help () |
virtual void | cycle_units () |
virtual void | cycle_back_units () |
virtual void | undo () |
virtual void | redo () |
virtual void | show_enemy_moves (bool ignore_units) |
virtual void | goto_leader () |
virtual void | unit_description () |
virtual void | toggle_grid () |
virtual void | search () |
virtual void | play_side (const unsigned int team_num, bool save)=0 |
int | get_ticks () |
Protected Member Functions | |
void | handle_event (const SDL_Event &event) |
Process mouse- and keypress-events from SDL. | |
virtual std::string | get_action_image (hotkey::HOTKEY_COMMAND, int index) const |
virtual hotkey::ACTION_STATE | get_action_state (hotkey::HOTKEY_COMMAND command) const |
virtual bool | can_execute_command (hotkey::HOTKEY_COMMAND command, int index=-1) const |
Check if a command can be executed. | |
virtual bool | execute_command (hotkey::HOTKEY_COMMAND command, int index=-1) |
void | show_menu (const std::vector< std::string > &items_arg, int xloc, int yloc, bool context_menu) |
bool | in_context_menu (hotkey::HOTKEY_COMMAND command) const |
Determines whether the command should be in the context menu or not. | |
virtual void | init (CVideo &video, bool is_replay) |
void | init_managers () |
void | fire_prestart (bool execute) |
void | fire_start (bool execute) |
virtual void | init_gui () |
virtual void | init_side (const unsigned int team_index, bool is_replay=false) |
void | place_sides_in_preferred_locations (gamemap &map, const config::child_list &sides) |
virtual void | finish_side_turn () |
void | finish_turn () |
bool | clear_shroud () |
bool | enemies_visible () const |
void | enter_textbox () |
team & | current_team () |
const team & | current_team () const |
int | find_human_team_before (const size_t team) const |
Find a human team (ie one we own) starting backwards from 'team_num'. | |
Protected Attributes | |
const verification_manager | verify_manager_ |
teams_manager | team_manager_ |
preferences::display_manager * | prefs_disp_manager_ |
tooltips::manager * | tooltips_manager_ |
game_events::manager * | events_manager_ |
halo::manager * | halo_manager_ |
font::floating_label_context | labels_manager_ |
help::help_manager | help_manager_ |
events::mouse_handler | mouse_handler_ |
events::menu_handler | menu_handler_ |
soundsource::manager * | soundsources_manager_ |
game_display * | gui_ |
const set_random_generator | generator_setter |
const statistics::scenario_context | statistics_context_ |
const config & | level_ |
const config & | game_config_ |
std::vector< team > | teams_ |
game_state & | gamestate_ |
gamestatus | status_ |
gamemap | map_ |
unit_map | units_ |
undo_list | undo_stack_ |
undo_list | redo_stack_ |
const int | ticks_ |
const unit_type::experience_accelerator | xp_mod_ |
const bool | loading_game_ |
CKey | key_ |
int | first_human_team_ |
unsigned int | player_number_ |
unsigned int | first_player_ |
unsigned int | start_turn_ |
bool | is_host_ |
bool | skip_replay_ |
bool | browse_ |
bool | linger_ |
bool | scrolling_ |
bool | first_turn_ |
Private Member Functions | |
void | expand_autosaves (std::vector< std::string > &items) |
void | expand_wml_commands (std::vector< std::string > &items) |
Private Attributes | |
std::vector< std::string > | savenames_ |
std::vector< wml_menu_item * > | wml_commands_ |
Definition at line 40 of file play_controller.hpp.
play_controller::play_controller | ( | const config & | level, | |
game_state & | state_of_game, | |||
int | ticks, | |||
int | num_turns, | |||
const config & | game_config, | |||
CVideo & | video, | |||
bool | skip_replay, | |||
bool | is_replay | |||
) |
Definition at line 36 of file play_controller.cpp.
References game_config::add_color_info(), init(), status_, gamestatus::teams, and teams_.
play_controller::~play_controller | ( | ) |
Definition at line 61 of file play_controller.cpp.
References events_manager_, gui_, halo_manager_, prefs_disp_manager_, soundsources_manager_, and tooltips_manager_.
void play_controller::play_slice | ( | ) | [virtual] |
Definition at line 732 of file play_controller.cpp.
References gui::floating_textbox::active(), browse_, current_team(), display::delay(), game_display::draw(), events::menu_handler::get_textbox(), gui_, display::h(), theme::menu::items(), level_, theme::object::location(), display::map_outside_area(), menu_handler_, display::menu_pressed(), mouse_handler_, preferences::mouse_scroll_enabled(), events::mouse_handler::mouse_update(), objectives(), point_in_rect(), tooltips::process(), events::pump(), events::raise_draw_event(), events::raise_process_event(), rect, team::reset_objectives_changed(), round_double(), display::screen_area(), display::scroll(), preferences::scroll_speed(), scrolling_, show_menu(), dialogs::show_objectives(), soundsources_manager_, soundsource::manager::update(), and display::w().
Referenced by playsingle_controller::handle_generic_event(), playsingle_controller::linger(), playsingle_controller::play_human_turn(), playmp_controller::play_human_turn(), playmp_controller::play_network_turn(), and replay_controller::play_turn().
virtual void play_controller::handle_generic_event | ( | const std::string & | ) | [inline, virtual] |
Implements events::observer.
Reimplemented in playmp_controller, playsingle_controller, and replay_controller.
Definition at line 51 of file play_controller.hpp.
void play_controller::objectives | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 226 of file play_controller.cpp.
References menu_handler_, events::menu_handler::objectives(), and player_number_.
Referenced by play_slice().
void play_controller::show_statistics | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Reimplemented in replay_controller.
Definition at line 230 of file play_controller.cpp.
References gui_, menu_handler_, events::menu_handler::show_statistics(), and game_display::viewing_team().
void play_controller::unit_list | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 234 of file play_controller.cpp.
References menu_handler_, and events::menu_handler::unit_list().
void play_controller::status_table | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 238 of file play_controller.cpp.
References menu_handler_, and events::menu_handler::status_table().
void play_controller::save_game | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 242 of file play_controller.cpp.
References menu_handler_, gui::OK_CANCEL, and events::menu_handler::save_game().
void play_controller::save_replay | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 246 of file play_controller.cpp.
References menu_handler_, gui::OK_CANCEL, and events::menu_handler::save_game().
void play_controller::save_map | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 250 of file play_controller.cpp.
References menu_handler_, and events::menu_handler::save_map().
void play_controller::load_game | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 254 of file play_controller.cpp.
References events::menu_handler::load_game(), and menu_handler_.
void play_controller::preferences | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Reimplemented in replay_controller.
Definition at line 258 of file play_controller.cpp.
References menu_handler_, and events::menu_handler::preferences().
Referenced by replay_controller::preferences().
void play_controller::show_chat_log | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 270 of file play_controller.cpp.
References menu_handler_, and events::menu_handler::show_chat_log().
void play_controller::show_help | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 274 of file play_controller.cpp.
References menu_handler_, and events::menu_handler::show_help().
void play_controller::cycle_units | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 262 of file play_controller.cpp.
References browse_, events::mouse_handler::cycle_units(), and mouse_handler_.
void play_controller::cycle_back_units | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 266 of file play_controller.cpp.
References browse_, events::mouse_handler::cycle_back_units(), and mouse_handler_.
void play_controller::undo | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 278 of file play_controller.cpp.
References events::mouse_handler::deselect_hex(), menu_handler_, mouse_handler_, player_number_, and events::menu_handler::undo().
void play_controller::redo | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 284 of file play_controller.cpp.
References events::mouse_handler::deselect_hex(), menu_handler_, mouse_handler_, player_number_, and events::menu_handler::redo().
void play_controller::show_enemy_moves | ( | bool | ignore_units | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 290 of file play_controller.cpp.
References menu_handler_, player_number_, and events::menu_handler::show_enemy_moves().
void play_controller::goto_leader | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 294 of file play_controller.cpp.
References events::menu_handler::goto_leader(), menu_handler_, and player_number_.
void play_controller::unit_description | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 298 of file play_controller.cpp.
References menu_handler_, mouse_handler_, and events::menu_handler::unit_description().
void play_controller::toggle_grid | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 302 of file play_controller.cpp.
References menu_handler_, and events::menu_handler::toggle_grid().
void play_controller::search | ( | ) | [virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 306 of file play_controller.cpp.
References menu_handler_, and events::menu_handler::search().
virtual void play_controller::play_side | ( | const unsigned int | team_num, | |
bool | save | |||
) | [pure virtual] |
Implemented in playmp_controller, playsingle_controller, and replay_controller.
int play_controller::get_ticks | ( | ) |
void play_controller::handle_event | ( | const SDL_Event & | event | ) | [protected, virtual] |
Process mouse- and keypress-events from SDL.
Implements events::handler.
Definition at line 651 of file play_controller.cpp.
References gui::floating_textbox::active(), browse_, gui::floating_textbox::close(), theme::context_menu(), unit_map::end(), enter_textbox(), events::mouse_handler::get_current_paths(), events::mouse_handler::get_path_turns(), events::mouse_handler::get_show_menu(), events::menu_handler::get_textbox(), display::get_theme(), events::mouse_handler::get_undo(), gui_, game_display::highlight_reach(), gui::in_dialog(), hotkey::key_event(), map_, menu_handler_, mouse_handler_, events::mouse_handler::mouse_motion(), events::mouse_handler::mouse_press(), player_number_, events::mouse_handler::selected_unit(), events::mouse_handler::set_current_paths(), events::mouse_handler::set_path_turns(), events::mouse_handler::set_undo(), show_menu(), gui::floating_textbox::tab(), teams_, events::menu_handler::undo(), units_, and game_display::viewing_team().
std::string play_controller::get_action_image | ( | hotkey::HOTKEY_COMMAND | command, | |
int | index | |||
) | const [protected, virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 969 of file play_controller.cpp.
References wml_menu_item::image, wml_commands_, and game_config::wml_menu_image.
hotkey::ACTION_STATE play_controller::get_action_state | ( | hotkey::HOTKEY_COMMAND | command | ) | const [protected, virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 980 of file play_controller.cpp.
References hotkey::ACTION_OFF, hotkey::ACTION_ON, hotkey::ACTION_STATELESS, team::auto_shroud_updates(), current_team(), and hotkey::HOTKEY_DELAY_SHROUD.
bool play_controller::can_execute_command | ( | hotkey::HOTKEY_COMMAND | command, | |
int | index = -1 | |||
) | const [protected, virtual] |
Check if a command can be executed.
Implements hotkey::command_executor.
Reimplemented in playmp_controller, playsingle_controller, and replay_controller.
Definition at line 500 of file play_controller.cpp.
References events::commands_disabled, events::menu_handler::current_unit(), unit_map::end(), enemies_visible(), gui_, hotkey::HOTKEY_ACCELERATED, hotkey::HOTKEY_AI_FORMULA, hotkey::HOTKEY_BEST_ENEMY_MOVES, hotkey::HOTKEY_CHAT_LOG, hotkey::HOTKEY_CLEAR_MSG, hotkey::HOTKEY_CUSTOM_CMD, hotkey::HOTKEY_CYCLE_BACK_UNITS, hotkey::HOTKEY_CYCLE_UNITS, hotkey::HOTKEY_FULLSCREEN, hotkey::HOTKEY_HELP, hotkey::HOTKEY_LEADER, hotkey::HOTKEY_LOAD_GAME, hotkey::HOTKEY_MAP_SCREENSHOT, hotkey::HOTKEY_MOUSE_SCROLL, hotkey::HOTKEY_MUTE, hotkey::HOTKEY_OBJECTIVES, hotkey::HOTKEY_PREFERENCES, hotkey::HOTKEY_QUIT_GAME, hotkey::HOTKEY_REDO, hotkey::HOTKEY_RENAME_UNIT, hotkey::HOTKEY_SAVE_GAME, hotkey::HOTKEY_SAVE_MAP, hotkey::HOTKEY_SAVE_REPLAY, hotkey::HOTKEY_SCREENSHOT, hotkey::HOTKEY_SEARCH, hotkey::HOTKEY_SHOW_ENEMY_MOVES, hotkey::HOTKEY_STATISTICS, hotkey::HOTKEY_STATUS_TABLE, hotkey::HOTKEY_TOGGLE_GRID, hotkey::HOTKEY_UNDO, hotkey::HOTKEY_UNIT_DESCRIPTION, hotkey::HOTKEY_UNIT_LIST, hotkey::HOTKEY_USER_CMD, hotkey::HOTKEY_ZOOM_DEFAULT, hotkey::HOTKEY_ZOOM_IN, hotkey::HOTKEY_ZOOM_OUT, linger_, menu_handler_, mouse_handler_, network::nconnections(), redo_stack_, savenames_, teams_, undo_stack_, units_, game_display::viewing_team(), and wml_commands_.
Referenced by replay_controller::can_execute_command(), playsingle_controller::can_execute_command(), and show_menu().
bool play_controller::execute_command | ( | hotkey::HOTKEY_COMMAND | command, | |
int | index = -1 | |||
) | [protected, virtual] |
Reimplemented from hotkey::command_executor.
Definition at line 473 of file play_controller.cpp.
References replay::add_event(), apply_shroud_changes(), map_editor::execute_command(), game_events::fire(), gamestate_, events::mouse_handler::get_last_hex(), gui_, game_state::last_selected, map_, mouse_handler_, name, player_number_, recorder, savenames_, teams_, undo_stack_, units_, gamemap::location::valid(), and wml_commands_.
void play_controller::show_menu | ( | const std::vector< std::string > & | items_arg, | |
int | xloc, | |||
int | yloc, | |||
bool | context_menu | |||
) | [protected] |
Definition at line 908 of file play_controller.cpp.
References can_execute_command(), command, events::commands_disabled, expand_autosaves(), expand_wml_commands(), hotkey::get_hotkey(), gui_, hotkey::HOTKEY_LOAD_GAME, in_context_menu(), game_display::playing_team(), map_editor::show_menu(), teams_, and game_display::viewing_team().
Referenced by handle_event(), and play_slice().
bool play_controller::in_context_menu | ( | hotkey::HOTKEY_COMMAND | command | ) | const [protected] |
Determines whether the command should be in the context menu or not.
Independant of whether or not we can actually execute the command.
Definition at line 948 of file play_controller.cpp.
References can_recruit_on(), unit_map::end(), events::mouse_handler::get_last_hex(), hotkey::HOTKEY_RECALL, hotkey::HOTKEY_RECRUIT, hotkey::HOTKEY_REPEAT_RECRUIT, map_, mouse_handler_, player_number_, team_leader(), and units_.
Referenced by show_menu().
void play_controller::init | ( | CVideo & | video, | |
bool | is_replay | |||
) | [protected, virtual] |
Definition at line 70 of file play_controller.cpp.
References _, replay::add_start(), lg::config, replay::empty(), preferences::encounter_map_terrain(), preferences::encounter_recallable_units(), preferences::encounter_recruitable_units(), preferences::encounter_start_units(), first_human_team_, game_config_, gamestate_, config::get_children(), get_first_human_team(), get_player_info(), get_theme(), get_unique_saveid(), loadscreen::global_loadscreen, gui_, init_managers(), teams_manager::is_observer(), level_, LOG_NG, map_, menu_handler_, mouse_handler_, place_sides_in_preferred_locations(), replay::pre_replay(), recorder, events::menu_handler::set_gui(), events::mouse_handler::set_gui(), theme::set_known_themes(), loadscreen::set_progress(), replay::set_skip(), game_display::set_team(), status_, utils::string_bool(), team_manager_, teams_, ticks_, and units_.
Referenced by play_controller().
void play_controller::init_managers | ( | ) | [protected] |
Definition at line 151 of file play_controller.cpp.
References events_manager_, gamestate_, gui_, halo_manager_, level_, LOG_NG, map_, prefs_disp_manager_, soundsources_manager_, status_, teams_, ticks_, tooltips_manager_, units_, and display::video().
Referenced by init().
void play_controller::fire_prestart | ( | bool | execute | ) | [protected] |
Definition at line 314 of file play_controller.cpp.
References game_events::fire(), gui_, and display::video().
Referenced by replay_controller::init(), playsingle_controller::play_scenario(), and replay_controller::reset_replay().
void play_controller::fire_start | ( | bool | execute | ) | [protected] |
Definition at line 323 of file play_controller.cpp.
References game_events::fire(), first_turn_, gamestate_, and game_state::set_variable().
Referenced by replay_controller::init(), playsingle_controller::play_scenario(), and replay_controller::reset_replay().
void play_controller::init_gui | ( | ) | [protected, virtual] |
Reimplemented in playsingle_controller, and replay_controller.
Definition at line 333 of file play_controller.cpp.
References game_display::adjust_colours(), game_display::begin_game(), clear_shroud(), gui_, map_, teams_, and units_.
Referenced by replay_controller::init_gui(), and playsingle_controller::init_gui().
void play_controller::init_side | ( | const unsigned int | team_index, | |
bool | is_replay = false | |||
) | [protected, virtual] |
Definition at line 342 of file play_controller.cpp.
References unit_map::begin(), calculate_healing(), clear_shroud(), current_team(), unit_map::end(), game_events::fire(), first_player_, first_turn_, gamestate_, team::get_disallow_observers(), gamestatus::get_time_of_day(), gui_, display::invalidate_all(), teams_manager::is_observer(), replay::is_skipping(), game_state::last_selected, loading_game_, log_scope, map_, mouse_handler_, team::new_turn(), gamemap::location::null_location, sound::play_sound(), player_number_, recorder, reset_resting(), game_display::scroll_to_leader(), game_display::set_playing_team(), game_display::set_team(), events::mouse_handler::set_team(), team::set_time_of_day(), game_state::set_variable(), skip_replay_, sound::SOUND_SOURCES, time_of_day::sounds, team::spend_gold(), start_turn_, status_, team_manager_, team_upkeep(), teams_, gamestatus::turn(), units_, and team::villages().
Referenced by replay_controller::play_side(), and playsingle_controller::play_turn().
void play_controller::place_sides_in_preferred_locations | ( | gamemap & | map, | |
const config::child_list & | sides | |||
) | [protected] |
Definition at line 193 of file play_controller.cpp.
References LOG_NG, gamemap::num_valid_starting_positions(), placing_score(), placing_info::pos, pos, placing_info::score, gamemap::set_starting_position(), placing_info::side, and gamemap::starting_position().
Referenced by init().
void play_controller::finish_side_turn | ( | ) | [protected, virtual] |
Reimplemented in playmp_controller.
Definition at line 428 of file play_controller.cpp.
References unit_map::begin(), current_team(), events::mouse_handler::deselect_hex(), unit_map::end(), gui_, display::invalidate_all(), mouse_handler_, player_number_, game_events::pump(), display::recalculate_minimap(), and units_.
Referenced by playmp_controller::finish_side_turn(), replay_controller::play_side(), and playsingle_controller::play_turn().
void play_controller::finish_turn | ( | ) | [protected] |
Definition at line 445 of file play_controller.cpp.
References game_events::fire(), gamestate_, gui_, replay::is_skipping(), LOG_NG, recorder, game_state::set_variable(), status_, gamestatus::turn(), and display::video().
Referenced by replay_controller::play_side(), and playsingle_controller::play_turn().
bool play_controller::clear_shroud | ( | ) | [protected] |
bool play_controller::enemies_visible | ( | ) | const [protected] |
Definition at line 459 of file play_controller.cpp.
References unit_map::begin(), current_team(), unit_map::end(), display::fogged(), gui_, team::is_enemy(), and units_.
Referenced by can_execute_command().
void play_controller::enter_textbox | ( | ) | [protected] |
Definition at line 580 of file play_controller.cpp.
References gui::floating_textbox::active(), gui::floating_textbox::box(), gui::floating_textbox::close(), events::menu_handler::do_ai_formula(), events::menu_handler::do_command(), events::menu_handler::do_search(), events::menu_handler::do_speak(), lg::err, events::menu_handler::get_textbox(), gui_, LOG_STREAM, menu_handler_, gui::floating_textbox::mode(), mouse_handler_, player_number_, gui::TEXTBOX_AI, gui::TEXTBOX_COMMAND, gui::TEXTBOX_MESSAGE, and gui::TEXTBOX_SEARCH.
Referenced by handle_event().
team & play_controller::current_team | ( | ) | [protected] |
Definition at line 614 of file play_controller.cpp.
References player_number_, and teams_.
Referenced by playmp_controller::after_human_turn(), playsingle_controller::can_execute_command(), enemies_visible(), finish_side_turn(), get_action_state(), init_side(), playsingle_controller::play_ai_turn(), playmp_controller::play_human_turn(), replay_controller::play_side(), playsingle_controller::play_side(), playmp_controller::play_side(), play_slice(), and playsingle_controller::play_turn().
const team & play_controller::current_team | ( | ) | const [protected] |
int play_controller::find_human_team_before | ( | const size_t | team | ) | const [protected] |
Find a human team (ie one we own) starting backwards from 'team_num'.
Definition at line 627 of file play_controller.cpp.
References teams_.
Referenced by playsingle_controller::play_side(), and playmp_controller::play_side().
void play_controller::expand_autosaves | ( | std::vector< std::string > & | items | ) | [private] |
Definition at line 825 of file play_controller.cpp.
References _, preferences::compress_saves(), gamestate_, game_state::label, lexical_cast(), name, save_game_exists(), savenames_, status_, trim_items(), and gamestatus::turn().
Referenced by show_menu().
void play_controller::expand_wml_commands | ( | std::vector< std::string > & | items | ) | [private] |
Definition at line 862 of file play_controller.cpp.
References buf, game_events::conditional_passed(), config::empty(), gamestate_, events::mouse_handler::get_last_hex(), game_state::last_selected, map_, MAX_WML_COMMANDS, mouse_handler_, game_state::set_variable(), status_, units_, gamemap::location::valid(), wml_commands_, game_state::wml_menu_items, gamemap::location::x, and gamemap::location::y.
Referenced by show_menu().
const verification_manager play_controller::verify_manager_ [protected] |
Definition at line 107 of file play_controller.hpp.
teams_manager play_controller::team_manager_ [protected] |
Definition at line 108 of file play_controller.hpp.
Referenced by init(), init_side(), and playsingle_controller::play_scenario().
Definition at line 109 of file play_controller.hpp.
Referenced by init_managers(), and ~play_controller().
tooltips::manager* play_controller::tooltips_manager_ [protected] |
Definition at line 110 of file play_controller.hpp.
Referenced by init_managers(), and ~play_controller().
game_events::manager* play_controller::events_manager_ [protected] |
Definition at line 111 of file play_controller.hpp.
Referenced by init_managers(), replay_controller::reset_replay(), and ~play_controller().
halo::manager* play_controller::halo_manager_ [protected] |
Definition at line 112 of file play_controller.hpp.
Referenced by init_managers(), and ~play_controller().
Definition at line 113 of file play_controller.hpp.
help::help_manager play_controller::help_manager_ [protected] |
Definition at line 114 of file play_controller.hpp.
events::mouse_handler play_controller::mouse_handler_ [protected] |
Definition at line 115 of file play_controller.hpp.
Referenced by playsingle_controller::before_human_turn(), playsingle_controller::can_execute_command(), can_execute_command(), playsingle_controller::change_unit_side(), playsingle_controller::continue_move(), playsingle_controller::create_unit(), playsingle_controller::custom_command(), cycle_back_units(), cycle_units(), playsingle_controller::end_unit_turn(), enter_textbox(), execute_command(), expand_wml_commands(), finish_side_turn(), handle_event(), in_context_menu(), init(), init_side(), playsingle_controller::label_terrain(), play_slice(), playsingle_controller::recall(), playsingle_controller::recruit(), redo(), playsingle_controller::rename_unit(), playsingle_controller::repeat_recruit(), undo(), unit_description(), and playsingle_controller::unit_hold_position().
events::menu_handler play_controller::menu_handler_ [protected] |
Definition at line 116 of file play_controller.hpp.
Referenced by playsingle_controller::after_human_turn(), playsingle_controller::ai_formula(), playsingle_controller::before_human_turn(), playsingle_controller::can_execute_command(), can_execute_command(), playsingle_controller::change_unit_side(), playmp_controller::clear_labels(), playsingle_controller::clear_messages(), playsingle_controller::continue_move(), playsingle_controller::create_unit(), playsingle_controller::custom_command(), playsingle_controller::end_turn(), playsingle_controller::end_unit_turn(), enter_textbox(), goto_leader(), handle_event(), init(), playsingle_controller::label_terrain(), load_game(), objectives(), playmp_controller::play_human_turn(), playsingle_controller::play_scenario(), play_slice(), preferences(), playmp_controller::process_oos(), playsingle_controller::recall(), playsingle_controller::recruit(), redo(), playsingle_controller::rename_unit(), playsingle_controller::repeat_recruit(), save_game(), save_map(), save_replay(), search(), playmp_controller::shout(), show_chat_log(), show_enemy_moves(), show_help(), replay_controller::show_statistics(), show_statistics(), playmp_controller::speak(), status_table(), toggle_grid(), playsingle_controller::toggle_shroud_updates(), undo(), unit_description(), playsingle_controller::unit_hold_position(), unit_list(), playsingle_controller::update_shroud_now(), playsingle_controller::user_command(), and playmp_controller::whisper().
Definition at line 117 of file play_controller.hpp.
Referenced by init_managers(), play_slice(), replay_controller::reset_replay(), and ~play_controller().
game_display* play_controller::gui_ [protected] |
Definition at line 120 of file play_controller.hpp.
Referenced by playsingle_controller::after_human_turn(), playsingle_controller::before_human_turn(), playmp_controller::before_human_turn(), playsingle_controller::can_execute_command(), can_execute_command(), replay_controller::continue_replay(), enemies_visible(), enter_textbox(), execute_command(), finish_side_turn(), finish_turn(), fire_prestart(), handle_event(), playsingle_controller::handle_generic_event(), playmp_controller::handle_generic_event(), init(), replay_controller::init_gui(), playsingle_controller::init_gui(), init_gui(), init_managers(), replay_controller::init_replay_display(), init_side(), playsingle_controller::linger(), playmp_controller::linger(), playsingle_controller::play_ai_turn(), playsingle_controller::play_human_turn(), playmp_controller::play_human_turn(), playmp_controller::play_network_turn(), replay_controller::play_replay(), playsingle_controller::play_scenario(), replay_controller::play_side(), playsingle_controller::play_side(), playmp_controller::play_side(), play_slice(), replay_controller::play_turn(), playsingle_controller::play_turn(), replay_controller::rebuild_replay_theme(), replay_controller::replay_next_side(), replay_controller::replay_next_turn(), replay_controller::replay_show_team1(), playmp_controller::reset_end_scenario_button(), replay_controller::reset_replay(), playmp_controller::set_end_scenario_button(), show_menu(), replay_controller::show_statistics(), show_statistics(), replay_controller::stop_replay(), replay_controller::update_teams(), playmp_controller::wait_for_upload(), ~play_controller(), and replay_controller::~replay_controller().
const set_random_generator play_controller::generator_setter [protected] |
Definition at line 121 of file play_controller.hpp.
const statistics::scenario_context play_controller::statistics_context_ [protected] |
Definition at line 122 of file play_controller.hpp.
const config& play_controller::level_ [protected] |
Definition at line 123 of file play_controller.hpp.
Referenced by playmp_controller::after_human_turn(), replay_controller::init(), init(), init_managers(), playmp_controller::play_human_turn(), playsingle_controller::play_scenario(), play_slice(), replay_controller::rebuild_replay_theme(), and replay_controller::reset_replay().
const config& play_controller::game_config_ [protected] |
Definition at line 124 of file play_controller.hpp.
Referenced by init(), and replay_controller::rebuild_replay_theme().
std::vector<team> play_controller::teams_ [protected] |
Definition at line 125 of file play_controller.hpp.
Referenced by playsingle_controller::after_human_turn(), playsingle_controller::before_human_turn(), playmp_controller::before_human_turn(), can_execute_command(), current_team(), execute_command(), find_human_team_before(), handle_event(), playmp_controller::handle_generic_event(), replay_controller::init(), init(), replay_controller::init_gui(), playsingle_controller::init_gui(), init_gui(), init_managers(), init_side(), playmp_controller::linger(), playsingle_controller::play_ai_turn(), play_controller(), playmp_controller::play_network_turn(), playsingle_controller::play_scenario(), replay_controller::play_side(), playsingle_controller::play_side(), playmp_controller::play_side(), replay_controller::play_turn(), playsingle_controller::play_turn(), replay_controller::replay_next_side(), replay_controller::reset_replay(), show_menu(), replay_controller::update_teams(), and playmp_controller::wait_for_upload().
game_state& play_controller::gamestate_ [protected] |
Definition at line 126 of file play_controller.hpp.
Referenced by playsingle_controller::before_human_turn(), playmp_controller::before_human_turn(), execute_command(), expand_autosaves(), expand_wml_commands(), finish_turn(), fire_start(), playmp_controller::handle_generic_event(), init(), init_managers(), init_side(), playsingle_controller::linger(), playmp_controller::linger(), playsingle_controller::play_ai_turn(), playmp_controller::play_network_turn(), playsingle_controller::play_scenario(), replay_controller::play_side(), playsingle_controller::play_turn(), replay_controller::replay_controller(), replay_controller::reset_replay(), and playmp_controller::wait_for_upload().
gamestatus play_controller::status_ [protected] |
Definition at line 127 of file play_controller.hpp.
Referenced by playsingle_controller::before_human_turn(), playmp_controller::before_human_turn(), playsingle_controller::check_time_over(), expand_autosaves(), expand_wml_commands(), finish_turn(), playmp_controller::handle_generic_event(), init(), init_managers(), init_side(), playsingle_controller::linger(), playmp_controller::linger(), playsingle_controller::play_ai_turn(), play_controller(), playmp_controller::play_network_turn(), playsingle_controller::play_scenario(), replay_controller::play_side(), playsingle_controller::play_turn(), replay_controller::reset_replay(), and playmp_controller::wait_for_upload().
gamemap play_controller::map_ [protected] |
Definition at line 128 of file play_controller.hpp.
Referenced by playsingle_controller::after_human_turn(), playsingle_controller::before_human_turn(), playmp_controller::before_human_turn(), playsingle_controller::can_execute_command(), execute_command(), expand_wml_commands(), handle_event(), playmp_controller::handle_generic_event(), in_context_menu(), init(), playsingle_controller::init_gui(), init_gui(), init_managers(), init_side(), playmp_controller::linger(), playsingle_controller::play_ai_turn(), playmp_controller::play_network_turn(), playsingle_controller::play_scenario(), replay_controller::play_side(), playsingle_controller::play_turn(), replay_controller::reset_replay(), replay_controller::update_teams(), and playmp_controller::wait_for_upload().
unit_map play_controller::units_ [protected] |
Definition at line 129 of file play_controller.hpp.
Referenced by playsingle_controller::after_human_turn(), playsingle_controller::before_human_turn(), playmp_controller::before_human_turn(), playsingle_controller::can_execute_command(), can_execute_command(), enemies_visible(), execute_command(), expand_wml_commands(), finish_side_turn(), handle_event(), playmp_controller::handle_generic_event(), in_context_menu(), replay_controller::init(), init(), replay_controller::init_gui(), playsingle_controller::init_gui(), init_gui(), init_managers(), init_side(), playsingle_controller::linger(), playmp_controller::linger(), playsingle_controller::play_ai_turn(), playmp_controller::play_network_turn(), playsingle_controller::play_scenario(), replay_controller::play_side(), playsingle_controller::play_turn(), replay_controller::replay_next_side(), replay_controller::replay_next_turn(), replay_controller::reset_replay(), replay_controller::update_teams(), and playmp_controller::wait_for_upload().
undo_list play_controller::undo_stack_ [protected] |
Definition at line 130 of file play_controller.hpp.
Referenced by playmp_controller::before_human_turn(), can_execute_command(), execute_command(), playmp_controller::handle_generic_event(), playmp_controller::linger(), playsingle_controller::play_ai_turn(), playmp_controller::play_network_turn(), playsingle_controller::play_turn(), and playmp_controller::wait_for_upload().
undo_list play_controller::redo_stack_ [protected] |
const int play_controller::ticks_ [protected] |
Definition at line 133 of file play_controller.hpp.
Referenced by get_ticks(), init(), replay_controller::init_gui(), playsingle_controller::init_gui(), init_managers(), replay_controller::init_replay_display(), replay_controller::play_replay(), and playsingle_controller::play_scenario().
const unit_type::experience_accelerator play_controller::xp_mod_ [protected] |
Definition at line 134 of file play_controller.hpp.
const bool play_controller::loading_game_ [protected] |
Definition at line 137 of file play_controller.hpp.
Referenced by replay_controller::init(), init_side(), playsingle_controller::play_scenario(), and replay_controller::reset_replay().
CKey play_controller::key_ [protected] |
Definition at line 139 of file play_controller.hpp.
int play_controller::first_human_team_ [protected] |
Definition at line 140 of file play_controller.hpp.
Referenced by init(), playsingle_controller::init_gui(), and playsingle_controller::play_scenario().
unsigned int play_controller::player_number_ [protected] |
Definition at line 141 of file play_controller.hpp.
Referenced by playsingle_controller::after_human_turn(), playmp_controller::after_human_turn(), playsingle_controller::before_human_turn(), playmp_controller::before_human_turn(), playsingle_controller::continue_move(), current_team(), playsingle_controller::custom_command(), playsingle_controller::end_turn(), playsingle_controller::end_unit_turn(), enter_textbox(), execute_command(), finish_side_turn(), goto_leader(), handle_event(), playmp_controller::handle_generic_event(), in_context_menu(), replay_controller::init_gui(), init_side(), playsingle_controller::linger(), playmp_controller::linger(), objectives(), playsingle_controller::play_ai_turn(), playmp_controller::play_human_turn(), playmp_controller::play_network_turn(), replay_controller::play_side(), playsingle_controller::play_side(), playmp_controller::play_side(), replay_controller::play_turn(), playsingle_controller::play_turn(), playsingle_controller::recall(), playsingle_controller::recruit(), redo(), playsingle_controller::repeat_recruit(), replay_controller::replay_next_side(), replay_controller::replay_next_turn(), replay_controller::reset_replay(), show_enemy_moves(), playsingle_controller::toggle_shroud_updates(), undo(), playsingle_controller::unit_hold_position(), playsingle_controller::update_shroud_now(), replay_controller::update_teams(), and playmp_controller::wait_for_upload().
unsigned int play_controller::first_player_ [protected] |
Definition at line 142 of file play_controller.hpp.
Referenced by init_side(), playsingle_controller::linger(), playmp_controller::linger(), replay_controller::play_replay(), playsingle_controller::play_scenario(), and playsingle_controller::play_turn().
unsigned int play_controller::start_turn_ [protected] |
bool play_controller::is_host_ [protected] |
Definition at line 144 of file play_controller.hpp.
Referenced by playmp_controller::handle_generic_event(), playmp_controller::is_host(), playmp_controller::play_human_turn(), playmp_controller::playmp_controller(), playmp_controller::set_end_scenario_button(), and playmp_controller::wait_for_upload().
bool play_controller::skip_replay_ [protected] |
Definition at line 145 of file play_controller.hpp.
Referenced by init_side(), playmp_controller::play_human_turn(), playmp_controller::play_network_turn(), playmp_controller::playmp_controller(), replay_controller::replay_next_side(), replay_controller::replay_next_turn(), replay_controller::replay_skip_animation(), and playmp_controller::wait_for_upload().
bool play_controller::browse_ [protected] |
Definition at line 146 of file play_controller.hpp.
Referenced by playsingle_controller::before_human_turn(), playsingle_controller::can_execute_command(), cycle_back_units(), cycle_units(), playsingle_controller::end_turn(), playsingle_controller::end_unit_turn(), handle_event(), playsingle_controller::linger(), playmp_controller::linger(), playsingle_controller::play_ai_turn(), playmp_controller::play_network_turn(), play_slice(), playsingle_controller::playsingle_controller(), playsingle_controller::recall(), playsingle_controller::recruit(), playsingle_controller::repeat_recruit(), and playsingle_controller::unit_hold_position().
bool play_controller::linger_ [protected] |
Definition at line 147 of file play_controller.hpp.
Referenced by playsingle_controller::before_human_turn(), playsingle_controller::can_execute_command(), can_execute_command(), playsingle_controller::end_turn(), playmp_controller::handle_generic_event(), playsingle_controller::linger(), playmp_controller::linger(), playmp_controller::play_human_turn(), playsingle_controller::play_scenario(), and playsingle_controller::playsingle_controller().
bool play_controller::scrolling_ [protected] |
bool play_controller::first_turn_ [protected] |
std::vector<std::string> play_controller::savenames_ [private] |
Definition at line 154 of file play_controller.hpp.
Referenced by can_execute_command(), execute_command(), and expand_autosaves().
std::vector<wml_menu_item *> play_controller::wml_commands_ [private] |
Definition at line 157 of file play_controller.hpp.
Referenced by can_execute_command(), execute_command(), expand_wml_commands(), and get_action_image().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |