14 #ifndef SAVED_GAME_HPP_INCLUDED
15 #define SAVED_GAME_HPP_INCLUDED
config replay_start_
snapshot made before the start event.
void write_starting_pos(config_writer &out) const
void expand_scenario()
copies the content of a [scenario] with the correct id attribute from the game config into this objec...
void set_scenario(config scenario)
void set_defaults()
does some post loading stuff must be used before passing the data to connect_engine ...
GLuint GLuint GLsizei GLenum type
We failed to get a starting pos in expand_scenario.
There is no scenario stating pos data (start-of-scenario).
replay_recorder_base & get_replay()
const config & replay_start() const
STARTING_POS_TYPE starting_pos_type_
void expand_random_scenario()
takes care of generate_map=, generate_scenario=, map= attributes This should be called before expandi...
const mp_game_settings & mp_settings() const
config & set_snapshot(config snapshot)
void write_general_info(config_writer &out) const
Definitions for the interface to Wesnoth Markup Language (WML).
void write_config(config_writer &out) const
writes the config information into a stream (file)
void load_mod(const std::string &type, const std::string &id)
helper for expand_mp_events();
void set_random_seed()
sets the random seed if that didn't already happen.
void expand_mp_options()
adds values of [option]s into [carryover_sides_start][variables] so that they are applied in the next...
Class for writing a config out to a file in pieces.
void update_label()
sets classification().label to the correct value.
We have a [snapshot] (mid-game-savefile).
config carryover_
depends on has_carryover_expanded_: if true: The carryover information for all sides from the previou...
config & get_starting_pos()
void set_data(config &cfg)
destroys the passed config.
game_classification classification_
some general information of the game that doesn't change during the game
mp_game_settings mp_settings_
config starting_pos_
The starting pos where the (non replay) game will be started from.
std::string get_scenario_id()
void expand_mp_events()
adds [event]s from [era] and [modification] into this scenario does NOT expand [option]s because vari...
void expand_carryover()
merges [carryover_sides_start] into [scenario] and saves the rest into [carryover_sides] Removes [car...
saved_game & operator=(saved_game other)
const config & get_starting_pos() const
void swap(saved_game &other)
replay_recorder_base replay_data_
game_classification & classification()
void set_carryover_sides_start(config carryover_sides_start)
void convert_to_start_save()
converts a normal savegame form the end of a scenaio to a start-of-scenario savefile for the next sce...
const replay_recorder_base & get_replay() const
A config object defines a single node in a WML file, with access to child nodes.
void write_carryover(config_writer &out) const
bool has_carryover_expanded_
mp_game_settings & mp_settings()
Multiplayer parameters for this game.
We have a [scenario] (start-of-scenario) savefile.
const game_classification & classification() const
GLsizei const GLcharARB ** string
const config & get_replay_starting_pos()