2022-02-24 11:50:16 +01:00
|
|
|
#include "GameBase.hpp"
|
2022-02-24 12:09:21 +01:00
|
|
|
#include "pgnp.hpp"
|
2022-02-24 11:50:16 +01:00
|
|
|
|
|
|
|
class PGNGameBase : public GameBase {
|
2022-02-24 15:22:56 +01:00
|
|
|
pgnp::PGN *pgn;
|
|
|
|
bool hasNextGame;
|
|
|
|
std::string file;
|
2022-02-24 12:09:21 +01:00
|
|
|
|
2022-02-24 11:50:16 +01:00
|
|
|
public:
|
|
|
|
PGNGameBase(std::string pgn_file);
|
2022-02-28 18:51:47 +01:00
|
|
|
~PGNGameBase();
|
2022-02-24 15:22:56 +01:00
|
|
|
Game *GetGame(std::uint32_t id);
|
|
|
|
bool NextGame();
|
2022-02-25 11:13:35 +01:00
|
|
|
Game *GetCurrentGame();
|
2022-02-24 15:22:56 +01:00
|
|
|
std::string GetTag(std::string tag);
|
2022-02-25 11:13:35 +01:00
|
|
|
void Save(std::vector<std::uint32_t> to_ignore,
|
|
|
|
std::vector<GameBase *> new_games_bases,
|
|
|
|
std::vector<Game *> new_games);
|
2022-02-24 15:22:56 +01:00
|
|
|
void Reset();
|
2022-02-26 12:30:07 +01:00
|
|
|
void Export(GameBase *base);
|
2022-02-24 11:50:16 +01:00
|
|
|
};
|