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>
19 #include <core/point.h>
20 #include <core/state_fwd.h>
21 #include <core/piece.h>
22 #include "icsapi_fwd.h"
23 #include "icsgamedata.h"
29 IsolatedPosition
= -3,
30 ObservingExamined
= -2,
35 UnknownRelation
= -255
38 class CaptureIndexes
{
45 WhiteQueenCastle
= 12,
47 BlackQueenCastle
= 14,
54 StartingIncrement
= 21,
67 std::vector
<Piece
> row
;
68 explicit PositionRow(const ICSAPIPtr
& icsapi
, const QString
& str
);
71 static QRegExp pattern
;
77 * Parse a style12 line filling the fields of this PositionInfo object.
78 * \param games Games we know about.
79 * \param style12 A style12 line.
80 * \return Whether the game is new.
82 bool load(std::map
<int, ICSGameData
>& games
, const QString
& style12
);
91 Point enPassantSquare
;
101 #endif // POSITIONINFO_H