Improve BaseTab pgn loading

This commit is contained in:
Loic Guegan 2022-02-24 15:22:56 +01:00
parent 40c6df0e7c
commit f99a7b699a
7 changed files with 87 additions and 48 deletions

View file

@ -2,14 +2,14 @@
#include "pgnp.hpp"
class PGNGameBase : public GameBase {
pgnp::PGN *pgn;
bool hasNextGame;
pgnp::PGN *pgn;
bool hasNextGame;
std::string file;
void ParseNextGame();
public:
PGNGameBase(std::string pgn_file);
bool HasNextGame();
Game *GetGame(std::uint32_t id) { return (new Game()); };
Game *GetNextGame();
Game *GetGame(std::uint32_t id);
bool NextGame();
std::string GetTag(std::string tag);
void Reset();
};