ochess/src/base_tab/gamebase/PGNGameBase.hpp

15 lines
305 B
C++
Raw Normal View History

2022-02-24 11:50:16 +01:00
#include "GameBase.hpp"
#include "pgnp.hpp"
2022-02-24 11:50:16 +01:00
class PGNGameBase : public GameBase {
pgnp::PGN *pgn;
bool hasNextGame;
void ParseNextGame();
2022-02-24 11:50:16 +01:00
public:
PGNGameBase(std::string pgn_file);
bool HasNextGame();
2022-02-24 11:50:16 +01:00
Game *GetGame(std::uint32_t id) { return (new Game()); };
Game *GetNextGame();
2022-02-24 11:50:16 +01:00
};