2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@sns.it>
3 (c) 2007 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
11 #ifndef HLVARIANT__SHOGI__SERIALIZER_H
12 #define HLVARIANT__SHOGI__SERIALIZER_H
19 template <typename _LegalityCheck
>
28 typedef _LegalityCheck LegalityCheck
;
29 typedef typename
LegalityCheck::GameState GameState
;
30 typedef typename
GameState::Board Board
;
31 typedef typename
Board::Piece Piece
;
32 typedef typename
GameState::Move Move
;
38 QString
serialize(const Move
&, const GameState
& ref
);
39 Move
deserialize(const QString
& str
, const GameState
& ref
);
44 template <typename LegalityCheck
>
45 Serializer
<LegalityCheck
>::Serializer(int rep
)
48 template <typename LegalityCheck
>
49 QString Serializer
<LegalityCheck
>::serialize(const Move
&, const GameState
&) {
50 return "N/A"; // BROKEN
53 template <typename LegalityCheck
>
54 typename Serializer
<LegalityCheck
>::Move Serializer
<LegalityCheck
>::deserialize(const QString
&, const GameState
&) {
55 return Move(); // BROKEN
59 } // namespace HLVariant
61 #endif // HLVARIANT__SHOGI__SERIALIZER_H