From 6215ed5c8052fbaa8ef0c43411110c5a4a020972 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Sun, 20 Apr 2008 21:52:41 +0200 Subject: [PATCH] Add san() to the MoveSerializer interface, so other variants can call it. --- src/core/delegators/moveserializer.h | 3 +++ src/core/moveserializer.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/core/delegators/moveserializer.h b/src/core/delegators/moveserializer.h index a1ad3bd..8a11a3d 100644 --- a/src/core/delegators/moveserializer.h +++ b/src/core/delegators/moveserializer.h @@ -38,6 +38,9 @@ public: virtual void setDelegator(IMoveSerializer* delegator) { m_serializer->setDelegator(delegator); } + virtual QString san(const Move& move, const IState* ref) const { + return m_serializer->san(move, ref); + } }; } // namespace Delegators diff --git a/src/core/moveserializer.h b/src/core/moveserializer.h index 43ae2dd..bb9d626 100644 --- a/src/core/moveserializer.h +++ b/src/core/moveserializer.h @@ -60,6 +60,8 @@ public: */ virtual QString type() const = 0; + virtual QString san(const Move& move, const IState* ref) const = 0; + virtual void setDelegator(IMoveSerializer* delegator) = 0; }; -- 2.11.4.GIT