mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-19 04:09:41 +00:00
Improve BaseTab pgn loading
This commit is contained in:
parent
40c6df0e7c
commit
f99a7b699a
7 changed files with 87 additions and 48 deletions
|
@ -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();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue