The Battle for Wesnoth  1.17.17+dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
savegame::oos_savegame Class Reference

#include <savegame.hpp>

Inheritance diagram for savegame::oos_savegame:

Public Member Functions

 oos_savegame (saved_game &gamestate, bool &ignore)
void set_title (const std::string &val)
 Customize the dialog's caption. More...
- Public Member Functions inherited from savegame::ingame_savegame
 ingame_savegame (saved_game &gamestate, const compression::format compress_saves)
- Public Member Functions inherited from savegame::savegame
virtual ~savegame ()
bool save_game_automatic (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 (const std::string &message, DIALOG_TYPE dialog_type)
 Save a game interactively through the savegame dialog. More...
const std::string & filename () const
std::string create_filename () const
 Build the filename according to the specific savegame's needs. More...
std::string create_filename (unsigned int turn_number) const
 Build the filename for the specified turn. More...

Private Member Functions

virtual int show_save_dialog (const std::string &message, DIALOG_TYPE dialog_type) override
 Display the save game dialog. More...

Private Attributes

bool & ignore_

Additional Inherited Members

- Public Types inherited from savegame::savegame
- 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 (const std::string &filename="")
 Save a game without any further user interaction. More...
bool check_filename (const std::string &filename)
 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::string & title () const
const saved_gamegamestate () const
void before_save ()
 If there needs to be some data fiddling before saving the game, this is the place to go. More...
- Protected Attributes inherited from savegame::savegame
std::string filename_
 Filename of the savegame file on disk. More...
std::string title_
 Title of the savegame dialog. More...
std::shared_ptr< save_index_classsave_index_manager_
 Will (at the time of writing) be save_index_class::default_saves_dir(). More...

Detailed Description

Definition at line 290 of file savegame.hpp.

Constructor & Destructor Documentation

◆ oos_savegame()

savegame::oos_savegame::oos_savegame ( saved_game gamestate,
bool &  ignore 

Definition at line 628 of file savegame.cpp.

Member Function Documentation

◆ set_title()

void savegame::oos_savegame::set_title ( const std::string &  val)

Customize the dialog's caption.

Definition at line 296 of file savegame.hpp.

References savegame::savegame::title_.

◆ show_save_dialog()

int savegame::oos_savegame::show_save_dialog ( const std::string &  message,
DIALOG_TYPE  dialog_type 

Member Data Documentation

◆ ignore_

bool& savegame::oos_savegame::ignore_

Definition at line 301 of file savegame.hpp.

Referenced by show_save_dialog().

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