From: Yann Dirson Date: Sun, 20 Apr 2008 19:52:41 +0000 (+0200) Subject: Add san() to the MoveSerializer interface, so other variants can call it. X-Git-Url: https://repo.or.cz/w/tagua/yd.git/commitdiff_plain/6215ed5c8052fbaa8ef0c43411110c5a4a020972 Add san() to the MoveSerializer interface, so other variants can call it. --- 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; };