aboutsummaryrefslogtreecommitdiff
path: root/src/base_tab/gamebase/PGNGameBase.hpp
blob: b58bdcad24bd6d1f464b101c39320027a85f2108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "GameBase.hpp"
#include "pgnp.hpp"

class PGNGameBase : public GameBase {
    pgnp::PGN *pgn;
    bool hasNextGame;

    void ParseNextGame();
public:
  PGNGameBase(std::string pgn_file);

  bool HasNextGame();
  Game *GetGame(std::uint32_t id) { return (new Game()); };
  Game *GetNextGame();
};