diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-25 11:42:46 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-25 11:42:46 +0100 |
| commit | c6f648cfb49372508fc4f2c6281d7752074397d7 (patch) | |
| tree | 83c49e4db7f76b74a02c2cb81e307211a004cb74 /src/game_tab/HalfMove.hpp | |
| parent | 64dec753e7a6594a8b68f7978773e80353d8e869 (diff) | |
Improve pgn save performance
Diffstat (limited to 'src/game_tab/HalfMove.hpp')
| -rw-r--r-- | src/game_tab/HalfMove.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game_tab/HalfMove.hpp b/src/game_tab/HalfMove.hpp index c8ef8c0..07be4d0 100644 --- a/src/game_tab/HalfMove.hpp +++ b/src/game_tab/HalfMove.hpp @@ -16,15 +16,17 @@ class HalfMove : public cgeditor::CGEHalfMove { HalfMove *parent = NULL; HalfMove *mainline = NULL; + chessarbiter::ChessArbiter arbiter; std::vector<HalfMove *> variations; std::string fen; char capture; std::string GetPGN(bool needDots); + void BuildAndVerify(HalfMove *m, std::string fen); public: HalfMove(std::string move); HalfMove(std::string move, std::string fen); - HalfMove(pgnp::HalfMove *m, std::string initial_fen); + HalfMove(pgnp::HalfMove *m); ~HalfMove(); /// @brief Add variation to current move @@ -53,5 +55,5 @@ public: void SetFen(std::string fen); void SetCapture(char c); std::string GetPGN(); + void BuildAndVerify(std::string initial_fen); }; - |
