The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Member Functions | List of all members
savegame::replay_savegame Class Reference

Class for replay saves (either manually or automatically). More...

#include <savegame.hpp>

Inheritance diagram for savegame::replay_savegame:
Inheritance graph

Public Member Functions

 replay_savegame (saved_game &gamestate, const compression::format compress_saves)
 
- Public Member Functions inherited from savegame::savegame
virtual ~savegame ()
 
bool save_game_automatic (CVideo &video, bool ask_for_overwrite=false, const std::string &filename="")
 Saves a game without user interaction, unless the file exists and it should be asked to overwrite it. More...
 
bool save_game_interactive (CVideo &video, const std::string &message, gui::DIALOG_TYPE dialog_type)
 Save a game interactively through the savegame dialog. More...
 
const std::stringfilename () const
 

Private Member Functions

virtual void create_filename ()
 Create a filename for automatic saves. More...
 
void write_game (config_writer &out)
 Writing the savegame config to a file. More...
 

Additional Inherited Members

- Protected Member Functions inherited from savegame::savegame
 savegame (saved_game &gamestate, const compression::format compress_saves, const std::string &title="Save")
 The only constructor of savegame. More...
 
bool save_game (CVideo *video=nullptr, const std::string &filename="")
 Save a game without any further user interaction. More...
 
void set_filename (std::string filename)
 Sets the filename and removes invalid characters. More...
 
bool check_filename (const std::string &filename, CVideo &video)
 Check, if the filename contains illegal constructs like ".gz". More...
 
void set_error_message (const std::string &error_message)
 Customize the standard error message. More...
 
const std::stringtitle ()
 
const saved_gamegamestate ()
 
void before_save ()
 If there needs to be some data fiddling before saving the game, this is the place to go. More...
 

Detailed Description

Class for replay saves (either manually or automatically).

Definition at line 206 of file savegame.hpp.

Constructor & Destructor Documentation

savegame::replay_savegame::replay_savegame ( saved_game gamestate,
const compression::format  compress_saves 
)

Definition at line 558 of file savegame.cpp.

Member Function Documentation

void savegame::replay_savegame::create_filename ( )
privatevirtual

Create a filename for automatic saves.

Reimplemented from savegame::savegame.

Definition at line 562 of file savegame.cpp.

References _(), resources::classification, savegame::savegame::gamestate(), and savegame::savegame::set_filename().

void savegame::replay_savegame::write_game ( config_writer out)
privatevirtual

The documentation for this class was generated from the following files: