Additional function in VPuzzleLayer

This commit is contained in:
Ronan Le Tiec 2020-04-18 12:12:04 +02:00
parent cefb643d54
commit 13d42bfa62
2 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,12 @@ VPuzzleLayer::~VPuzzleLayer()
}
//---------------------------------------------------------------------------------------------------------------------
QList<VPuzzlePiece *> VPuzzleLayer::GetPieces()
{
return m_pieces;
}
//---------------------------------------------------------------------------------------------------------------------
void VPuzzleLayer::AddPiece(VPuzzlePiece *piece)
{

View File

@ -37,6 +37,7 @@ public:
VPuzzleLayer();
~VPuzzleLayer();
QList<VPuzzlePiece *> GetPieces();
void AddPiece(VPuzzlePiece *piece);
void RemovePiece(VPuzzlePiece *piece);