Add san() to the MoveSerializer interface, so other variants can call it.
[tagua/yd.git] / src / piecefactory.h
blob146bec14986957cdfbcb92b613e72490ab40a2a0
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
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.
9 */
11 #ifndef PIECEFACTORY_H
12 #define PIECEFACTORY_H
14 #include <QString>
16 template <typename Variant>
17 class PieceFactory {
18 public:
19 static typename Variant::Piece createPiece(const QString&) { return typename Variant::Piece(); }
22 #endif // PIECEFACTORY_H