mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-19 04:09:41 +00:00
Migrate to std::shared_ptr<Game>
This commit is contained in:
parent
4c959fe12e
commit
44ea0a50a3
16 changed files with 44 additions and 49 deletions
|
@ -9,13 +9,13 @@ class PGNGameBase : public GameBase {
|
|||
public:
|
||||
PGNGameBase(std::string pgn_file);
|
||||
~PGNGameBase();
|
||||
Game *GetGame(std::uint32_t id);
|
||||
std::shared_ptr<Game> GetGame(std::uint32_t id);
|
||||
bool NextGame();
|
||||
Game *GetCurrentGame();
|
||||
std::shared_ptr<Game> GetCurrentGame();
|
||||
std::string GetTag(std::string tag);
|
||||
void Save(std::vector<std::uint32_t> to_ignore,
|
||||
std::vector<GameBase *> new_games_bases,
|
||||
std::vector<Game *> new_games);
|
||||
std::vector<std::shared_ptr<Game>> new_games);
|
||||
void Reset();
|
||||
void Export(GameBase *base);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue