new 33c0e9569b8825f53d773343cc90e4377118edca
[tagua/yd.git] / src / variants / crazyhouse / moveserializer.h
blob81745837dcc456bb100b5427f7c71aeff4c7fe4c
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8 */
10 #ifndef CRAZYHOUSE__MOVESERIALIZER_H
11 #define CRAZYHOUSE__MOVESERIALIZER_H
13 #include <core/component.h>
14 #include <core/delegators/moveserializer.h>
16 namespace Crazyhouse {
18 class MoveSerializer : public Component, public Delegators::MoveSerializer {
19 public:
20 MoveSerializer(IMoveSerializer* serializer);
22 virtual QString serialize(const Move& move, const IState* ref) const;
23 // virtual Move deserialize(const QString& str, const IState* ref) const;
26 } // namespace Crazyhouse
28 #endif // CRAZYHOUSE__MOVESERIALIZER_H