aboutsummaryrefslogtreecommitdiff
path: root/src/base_tab/gamebase/PGNGameBase.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-24 12:09:21 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-24 12:09:21 +0100
commit40c6df0e7c3f17204a6187eb2bc241f396720272 (patch)
tree52d97a27c701b31ef6cd833f84a4eefc3e7f826a /src/base_tab/gamebase/PGNGameBase.hpp
parent32a0b3e31f1bb0024e96915f58afd991a992d945 (diff)
Improve BaseTab implementation for PGN files
Diffstat (limited to 'src/base_tab/gamebase/PGNGameBase.hpp')
-rw-r--r--src/base_tab/gamebase/PGNGameBase.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/base_tab/gamebase/PGNGameBase.hpp b/src/base_tab/gamebase/PGNGameBase.hpp
index 2aa0840..b58bdca 100644
--- a/src/base_tab/gamebase/PGNGameBase.hpp
+++ b/src/base_tab/gamebase/PGNGameBase.hpp
@@ -1,10 +1,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() { return (false); }
+ bool HasNextGame();
Game *GetGame(std::uint32_t id) { return (new Game()); };
- Game *GetNextGame() { return (new Game()); };
+ Game *GetNextGame();
}; \ No newline at end of file