2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@sns.it>
3 (c) 2006 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.
14 #include "tagua_wrapped.h"
15 #include "piecefactory.h"
17 template <typename Variant
>
18 PositionPtr WrappedICSAPI
<Variant
>::createChessboard(
26 new WrappedPosition
<Variant
>(typename
Variant::Position(
27 static_cast<typename
Variant::Piece::Color
>(turn
),
28 wkCastle
, wqCastle
, bkCastle
, bqCastle
, ep
)));
33 template <typename Variant
>
34 PiecePtr WrappedICSAPI
<Variant
>::createPiece(const QString
& description
) {
35 return AbstractPiece::Ptr(new WrappedPiece
<Variant
>(
36 PieceFactory
<Variant
>::createPiece(description
)));
40 #endif // ICSAPI_IMPL_H