19#ifndef GRAPHICSPIECERESERVE_H
20#define GRAPHICSPIECERESERVE_H
22#include <QGraphicsItem>
24#include <board/piece.h>
39 enum { Type = UserType + 3 };
52 virtual int type()
const;
53 virtual QRectF boundingRect()
const;
54 virtual void paint(
QPainter* painter,
A chess piece.
Definition piece.h:41
The side or color of a chess player.
Definition side.h:36
GraphicsPiece * piece(const Chess::Piece &piece) const
Definition graphicspiecereserve.cpp:83
GraphicsPieceReserve(qreal squareSize, QGraphicsItem *parent=nullptr)
Definition graphicspiecereserve.cpp:24
void addPiece(GraphicsPiece *piece)
Definition graphicspiecereserve.cpp:115
GraphicsPiece * takePiece(const Chess::Piece &piece)
Definition graphicspiecereserve.cpp:88
int pieceCount(const Chess::Piece &piece) const
Definition graphicspiecereserve.cpp:78
A graphical representation of a chess piece.
Definition graphicspiece.h:38