mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-18 03:42:02 +00:00
21 lines
No EOL
598 B
C++
21 lines
No EOL
598 B
C++
#include "GameBase.hpp"
|
|
#include "pgnp.hpp"
|
|
|
|
class PGNGameBase : public GameBase {
|
|
pgnp::PGN *pgn;
|
|
bool hasNextGame;
|
|
std::string file;
|
|
|
|
public:
|
|
PGNGameBase(std::string pgn_file);
|
|
~PGNGameBase();
|
|
std::shared_ptr<Game> GetGame(std::uint32_t id);
|
|
bool NextGame();
|
|
std::shared_ptr<Game> GetCurrentGame();
|
|
std::string GetTag(std::string tag);
|
|
void Save(std::vector<std::uint32_t> to_ignore,
|
|
std::vector<std::shared_ptr<GameBase>> new_games_bases,
|
|
std::vector<std::shared_ptr<Game>> new_games);
|
|
void Reset();
|
|
void Export(std::shared_ptr<GameBase> base);
|
|
}; |