playcampaign.hpp File Reference

#include "menu_events.hpp"

Include dependency graph for playcampaign.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  io_type_t { IO_NONE, IO_SERVER, IO_CLIENT }

Functions

LEVEL_RESULT play_game (display &disp, game_state &state, const config &game_config, upload_log &log, io_type_t io_type=IO_NONE, bool skip_replay=false)
void play_replay (display &disp, game_state &state, const config &game_config, CVideo &video)


Detailed Description

Definition in file playcampaign.hpp.


Enumeration Type Documentation

enum io_type_t

Enumerator:
IO_NONE 
IO_SERVER 
IO_CLIENT 

Definition at line 29 of file playcampaign.hpp.


Function Documentation

LEVEL_RESULT play_game ( display disp,
game_state state,
const config game_config,
upload_log log,
io_type_t  io_type = IO_NONE,
bool  skip_replay = false 
)

Todo:
TODO : remove (see TODO line 276 in server/game.cpp)

Definition at line 200 of file playcampaign.cpp.

References _, game_state::abbrev, config::add_child(), replay::at_end(), game_state::campaign_type, player_info::can_recruit, cfg, config::child(), clean_saves(), config::clear(), replay::clear(), preferences::client_type(), game_state::completion, lg::config, DEFEAT, preferences::delete_saves(), config::empty(), config::find_child(), config::get_children(), game_state::get_player(), dialogs::get_save_name(), player_info::gold, utils::interpolate_variables_into_string(), IO_CLIENT, IO_NONE, IO_SERVER, game_state::label, LEVEL_CONTINUE, LEVEL_CONTINUE_NO_SAVE, lexical_cast(), LOG_G, preferences::login(), message, config::error::message, gamemap::incorrect_format_exception::msg_, player_info::name, dialogs::network_receive_dialog(), game_state::next_scenario, OBSERVER_END, gui::OK_CANCEL, sound::play_no_music(), playmp_scenario(), playsingle_scenario(), QUIT, random_generate_map(), random_generate_scenario(), read_map(), recorder, game_state::replay_data, game_state::rng(), simple_rng::rotate_random(), save_game(), replay::save_game(), preferences::save_replays(), game_state::scenario, network::send_data(), game_state::set_menu_items(), replay::set_save_info(), replay::set_save_info_completion(), game_state::set_variables(), twml_exception::show(), gui::show_error_message(), game_state::snapshot, utils::split(), game_state::starting_pos, type, config::values, VICTORY, cursor::WAIT, write_game(), WRITE_SNAPSHOT_ONLY, and gui::YES_NO.

void play_replay ( display disp,
game_state state,
const config game_config,
CVideo video 
)


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