void check_require_scenario()
Add addon_id information if needed.
config replay_start_
snapshot made before the start event.
void write_general_info(config_writer &out) const
bool is_mid_game_save() 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 write_starting_point(config_writer &out) const
void set_defaults()
does some post loading stuff must be used before passing the data to connect_engine ...
void write_config(config_writer &out) const
writes the config information into a stream (file)
replay_recorder_base & get_replay()
void write_carryover(config_writer &out) const
void expand_random_scenario()
takes care of generate_map=, generate_scenario=, map= attributes This should be called before expandi...
const config & replay_start() const
config starting_point_
The starting pos where the (non replay) game will be started from.
config & set_snapshot(config snapshot)
static void post_scenario_generation(const config &old_scenario, config &generated_scenario)
copies attributes & tags from the 'outer' [scenario] to the scenario that is generated by scenario_genera...
Definitions for the interface to Wesnoth Markup Language (WML).
bool skip_story() const
Whether to play [story] tags.
std::string get_scenario_id() const
We failed to get a starting pos in expand_scenario.
const game_classification & classification() const
static void expand_map_file(config &scenario)
reads scenario["map_file"]
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.
config carryover_
depends on has_carryover_expanded_: if true: The carryover information for all sides from the previou...
config & get_starting_point()
void load_non_scenario(const std::string &type, const std::string &id, size_t pos)
helper for expand_mp_events();
starting_point starting_point_type_
void set_data(config &cfg)
destroys the passed config.
const replay_recorder_base & get_replay() const
game_classification classification_
some general information of the game that doesn't change during the game
const config & get_starting_point() const
const config & get_replay_starting_point()
There is no scenario stating pos data (start-of-scenario).
We have a [scenario] (start-of-scenario) savefile.
mp_game_settings mp_settings_
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...
void swap(saved_game &other)
replay_recorder_base replay_data_
game_classification & classification()
void set_carryover_sides_start(config carryover_sides_start)
saved_game & operator=(const saved_game &other)=delete
void set_skip_story(bool skip_story)
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...
We have a [snapshot] (mid-game-savefile).
const mp_game_settings & mp_settings() const
A config object defines a single node in a WML file, with access to child nodes.
bool has_carryover_expanded_
mp_game_settings & mp_settings()
Multiplayer parameters for this game.