upload_log Struct Reference

#include <upload_log.hpp>

Collaboration diagram for upload_log:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 upload_log (bool enable)
 ~upload_log ()
void start (game_state &state, const team &team, unsigned int team_number, const unit_map &map, const t_string &turn, int num_turns)
void defeat (int turn)
void victory (int turn, int gold)
void quit (int turn)

Private Member Functions

configadd_game_result (const std::string &str, int turn)
bool game_finished (config *game)

Private Attributes

config config_
configgame_
std::string filename_
bool enabled_

Static Private Attributes

static struct thread_info thread_
static managermanager_ = 0

Friends

struct manager

Classes

struct  manager
struct  thread_info


Detailed Description

Definition at line 25 of file upload_log.hpp.


Constructor & Destructor Documentation

upload_log::upload_log ( bool  enable  ) 

upload_log::~upload_log (  ) 


Member Function Documentation

void upload_log::start ( game_state state,
const team team,
unsigned int  team_number,
const unit_map map,
const t_string turn,
int  num_turns 
)

void upload_log::defeat ( int  turn  ) 

Definition at line 286 of file upload_log.cpp.

References add_game_result().

Referenced by playsingle_controller::play_scenario().

void upload_log::victory ( int  turn,
int  gold 
)

Definition at line 294 of file upload_log.cpp.

References add_game_result(), and lexical_cast().

Referenced by playsingle_controller::play_scenario().

void upload_log::quit ( int  turn  ) 

config & upload_log::add_game_result ( const std::string &  str,
int  turn 
) [private]

Definition at line 193 of file upload_log.cpp.

References config::add_child(), game_, and lexical_cast().

Referenced by defeat(), quit(), and victory().

bool upload_log::game_finished ( config game  )  [private]

Definition at line 185 of file upload_log.cpp.

References config::child().

Referenced by ~upload_log().


Friends And Related Function Documentation

friend struct manager [friend]

Definition at line 61 of file upload_log.hpp.


Member Data Documentation

struct thread_info upload_log::thread_ [static, read, private]

upload_log::manager * upload_log::manager_ = 0 [static, read, private]

Definition at line 63 of file upload_log.hpp.

Referenced by ~upload_log().

Definition at line 64 of file upload_log.hpp.

Referenced by add_game_result(), and ~upload_log().

std::string upload_log::filename_ [private]

Definition at line 65 of file upload_log.hpp.

Referenced by upload_log(), and ~upload_log().

bool upload_log::enabled_ [private]

Definition at line 66 of file upload_log.hpp.

Referenced by ~upload_log().


The documentation for this struct 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