replay_controller Class Reference

#include <replay_controller.hpp>

Inheritance diagram for replay_controller:

Inheritance graph
[legend]
Collaboration diagram for replay_controller:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 replay_controller (const config &level, game_state &state_of_game, const int ticks, const int num_turns, const config &game_config, CVideo &video)
 ~replay_controller ()
virtual bool can_execute_command (hotkey::HOTKEY_COMMAND command, int index=-1) const
 Check if a command can be executed.
virtual void preferences ()
virtual void show_statistics ()
void play_replay ()
void reset_replay ()
void stop_replay ()
void replay_next_turn ()
void replay_next_side ()
void replay_show_everything ()
void replay_show_each ()
void replay_show_team1 ()
void replay_skip_animation ()

Public Attributes

std::vector< teamteams_start_

Protected Member Functions

virtual void init_gui ()

Private Member Functions

bool continue_replay ()
void init ()
virtual void play_turn ()
virtual void play_side (const unsigned int team_index, bool save)
void update_teams ()
void update_gui ()
void init_replay_display ()
void rebuild_replay_theme ()
void handle_generic_event (const std::string &)

Private Attributes

game_state gamestate_start_
gamestatus status_start_
unit_map units_start_
unsigned int current_turn_
int delay_
bool is_playing_
bool show_everything_
unsigned int show_team_


Detailed Description

Definition at line 25 of file replay_controller.hpp.


Constructor & Destructor Documentation

replay_controller::replay_controller ( const config level,
game_state state_of_game,
const int  ticks,
const int  num_turns,
const config game_config,
CVideo video 
)

replay_controller::~replay_controller (  ) 


Member Function Documentation

bool replay_controller::can_execute_command ( hotkey::HOTKEY_COMMAND  command,
int  index = -1 
) const [virtual]

void replay_controller::preferences (  )  [virtual]

Reimplemented from play_controller.

Definition at line 399 of file replay_controller.cpp.

References init_replay_display(), play_controller::preferences(), and update_gui().

void replay_controller::show_statistics (  )  [virtual]

void replay_controller::play_replay (  )  [virtual]

void replay_controller::reset_replay (  )  [virtual]

void replay_controller::stop_replay (  )  [virtual]

void replay_controller::replay_next_turn (  )  [virtual]

void replay_controller::replay_next_side (  )  [virtual]

void replay_controller::replay_show_everything (  )  [virtual]

Reimplemented from hotkey::command_executor.

Definition at line 244 of file replay_controller.cpp.

References show_everything_, show_team_, update_gui(), and update_teams().

void replay_controller::replay_show_each (  )  [virtual]

Reimplemented from hotkey::command_executor.

Definition at line 251 of file replay_controller.cpp.

References show_everything_, show_team_, update_gui(), and update_teams().

void replay_controller::replay_show_team1 (  )  [virtual]

void replay_controller::replay_skip_animation (  )  [virtual]

void replay_controller::init_gui (  )  [protected, virtual]

bool replay_controller::continue_replay (  )  [private]

Definition at line 91 of file replay_controller.cpp.

References _, play_controller::gui_, and gui::OK_CANCEL.

Referenced by init(), play_side(), and reset_replay().

void replay_controller::init (  )  [private]

void replay_controller::play_turn (  )  [private, virtual]

void replay_controller::play_side ( const unsigned int  team_index,
bool  save 
) [private, virtual]

void replay_controller::update_teams (  )  [private]

void replay_controller::update_gui (  )  [private]

void replay_controller::init_replay_display (  )  [private]

void replay_controller::rebuild_replay_theme (  )  [private]

void replay_controller::handle_generic_event ( const std::string &   )  [private, virtual]

Reimplemented from play_controller.

Definition at line 409 of file replay_controller.cpp.

References rebuild_replay_theme().


Member Data Documentation

Definition at line 47 of file replay_controller.hpp.

Referenced by init(), and reset_replay().

Definition at line 63 of file replay_controller.hpp.

Referenced by replay_controller(), and reset_replay().

Definition at line 64 of file replay_controller.hpp.

Referenced by reset_replay().

Definition at line 65 of file replay_controller.hpp.

Referenced by init(), and reset_replay().

unsigned int replay_controller::current_turn_ [private]

Definition at line 68 of file replay_controller.hpp.

Referenced by replay_controller().

unsigned int replay_controller::show_team_ [private]


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