Skip to content

Commit

Permalink
Game Launcher: made clear_loaded_game and start_wesnothd private
Browse files Browse the repository at this point in the history
Also properly deleted the copy constructor and assignment operators.
  • Loading branch information
Vultraz committed Jan 5, 2021
1 parent a4711eb commit 1a1c629
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/game_launcher.hpp
Expand Up @@ -88,7 +88,6 @@ class game_launcher
unit_test_result unit_test();

bool has_load_data() const;
void clear_loaded_game();
bool load_game();
void set_test(const std::string& id);

Expand All @@ -114,13 +113,14 @@ class game_launcher

editor::EXIT_STATUS start_editor() { return start_editor(""); }

void start_wesnothd();

const commandline_options & opts() const { return cmdline_opts_; }

private:
game_launcher(const game_launcher&);
void operator=(const game_launcher&);
game_launcher(const game_launcher&) = delete;
game_launcher& operator=(const game_launcher&) = delete;

void clear_loaded_game();
void start_wesnothd();
void mark_completed_campaigns(std::vector<config>& campaigns);

editor::EXIT_STATUS start_editor(const std::string& filename);
Expand Down

0 comments on commit 1a1c629

Please sign in to comment.