turn_info Class Reference

#include <playturn.hpp>

Collaboration diagram for turn_info:

Collaboration graph
[legend]

List of all members.

Public Types

enum  PROCESS_DATA_RESULT { PROCESS_CONTINUE, PROCESS_RESTART_TURN, PROCESS_END_TURN, PROCESS_END_LINGER }

Public Member Functions

 turn_info (game_state &state_of_game, const gamestatus &status, game_display &gui, gamemap &map, std::vector< team > &teams, unsigned int team_num, unit_map &units, replay_network_sender &network_sender, undo_list &undo_stack)
 ~turn_info ()
void sync_network ()
void send_data ()
PROCESS_DATA_RESULT process_network_data (const config &cfg, network::connection from, std::deque< config > &backlog, bool skip_replay)
events::generic_eventreplay_error ()
events::generic_eventhost_transfer ()

Static Private Member Functions

static void change_side_controller (const std::string &side, const std::string &player, bool own_side=false)

Private Attributes

game_statestate_of_game_
const gamestatusstatus_
game_displaygui_
gamemapmap_
std::vector< team > & teams_
unsigned int team_num_
unit_mapunits_
undo_listundo_stack_
replay_network_senderreplay_sender_
events::generic_event replay_error_
events::generic_event host_transfer_


Detailed Description

Definition at line 33 of file playturn.hpp.


Member Enumeration Documentation

Enumerator:
PROCESS_CONTINUE 
PROCESS_RESTART_TURN 
PROCESS_END_TURN 
PROCESS_END_LINGER  When the host uploaded the next scenario this is returned.

Definition at line 47 of file playturn.hpp.


Constructor & Destructor Documentation

turn_info::turn_info ( game_state state_of_game,
const gamestatus status,
game_display gui,
gamemap map,
std::vector< team > &  teams,
unsigned int  team_num,
unit_map units,
replay_network_sender network_sender,
undo_list undo_stack 
)

Definition at line 31 of file playturn.cpp.

turn_info::~turn_info (  ) 

Definition at line 42 of file playturn.cpp.

References undo_stack_.


Member Function Documentation

void turn_info::sync_network (  ) 

void turn_info::send_data (  ) 

turn_info::PROCESS_DATA_RESULT turn_info::process_network_data ( const config cfg,
network::connection  from,
std::deque< config > &  backlog,
bool  skip_replay 
)

events::generic_event& turn_info::replay_error (  )  [inline]

events::generic_event& turn_info::host_transfer (  )  [inline]

void turn_info::change_side_controller ( const std::string &  side,
const std::string &  player,
bool  own_side = false 
) [static, private]

Definition at line 319 of file playturn.cpp.

References config::add_child(), cfg, and network::send_data().

Referenced by process_network_data().


Member Data Documentation

Definition at line 69 of file playturn.hpp.

Referenced by process_network_data().

const gamestatus& turn_info::status_ [private]

Definition at line 70 of file playturn.hpp.

Referenced by process_network_data().

Definition at line 71 of file playturn.hpp.

Referenced by process_network_data().

Definition at line 72 of file playturn.hpp.

Referenced by process_network_data().

std::vector<team>& turn_info::teams_ [private]

Definition at line 73 of file playturn.hpp.

Referenced by process_network_data().

unsigned int turn_info::team_num_ [private]

Definition at line 74 of file playturn.hpp.

Referenced by process_network_data().

Definition at line 75 of file playturn.hpp.

Referenced by process_network_data().

Definition at line 77 of file playturn.hpp.

Referenced by send_data(), and ~turn_info().

Definition at line 79 of file playturn.hpp.

Referenced by send_data().

Definition at line 81 of file playturn.hpp.

Referenced by process_network_data(), and replay_error().

Definition at line 82 of file playturn.hpp.

Referenced by host_transfer(), and process_network_data().


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