Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/wesnoth/wesnoth
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Sep 11, 2014
2 parents 32ea9b5 + f092b2a commit 7b069b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/saved_game.hpp
Expand Up @@ -12,7 +12,7 @@ class saved_game
{
enum STARTING_POS_TYPE
{
/// There is no scenario stating pos data.
/// There is no scenario stating pos data (start-of-scenario).
STARTINGPOS_NONE,
/// We have a [snapshot] (mid-game-savefile).
STARTINGPOS_SNAPSHOT,
Expand Down Expand Up @@ -46,6 +46,7 @@ class saved_game
const config& carryover() { return carryover_; }

/// copies the content of a [scenario] with the correct id attribute from the game config into this object.
/// reloads the game config from disk if necessary.
void expand_scenario();
/// merges [carryover_sides_start] into [scenario] and saves the rest into [carryover_sides]
/// Removes [carryover_sides_start] afterwards
Expand Down Expand Up @@ -73,6 +74,7 @@ class saved_game
/// converts a normal savegame form the end of a scenaio to a start-of-scenario savefile for the next scenaio,
/// The saved_game must contain a [snapshot] made during the linger mode of the last scenaio.
void convert_to_start_save();
/// sets the random seed if that didn't already happen.
void set_random_seed();
/// @return the starting pos for replays. Usualy this is [replay_start] but it can also be a [scenario] if no [replay_start] is present
const config& get_replay_starting_pos();
Expand All @@ -96,12 +98,12 @@ class saved_game

private:

bool has_carryover_expanded_;
/**
depends on has_carryover_expanded_:
if true: The carryover information for all sides that arent used in this scenario to be carried over to the next scenario
if false: The whole carryover information for all sides from teh previous scenario.
*/
bool has_carryover_expanded_;
config carryover_;
/** snapshot made before the start event. To be used as a starting pos for replays */
config replay_start_;
Expand Down

0 comments on commit 7b069b2

Please sign in to comment.