2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@gmail.com>
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.
11 #ifndef POSITIONINFO_H
12 #define POSITIONINFO_H
16 #include <boost/shared_ptr.hpp>
20 #include "icsgamedata.h"
27 IsolatedPosition
= -3,
28 ObservingExamined
= -2,
33 UnknownRelation
= -255
36 class CaptureIndexes
{
43 WhiteQueenCastle
= 12,
45 BlackQueenCastle
= 14,
52 StartingIncrement
= 21,
65 std::vector
<AbstractPiece::Ptr
> row
;
66 explicit PositionRow(const ICSAPIPtr
& icsapi
, const QString
& str
);
69 static QRegExp pattern
;
75 * Parse a style12 line filling the fields of this PositionInfo object.
76 * \param games Games we know about.
77 * \param style12 A style12 line.
78 * \return Whether the game is new.
80 bool load(std::map
<int, ICSGameData
>& games
, const QString
& style12
);
88 AbstractPosition::Ptr position
;
89 Point enPassantSquare
;
99 #endif // POSITIONINFO_H