fini PiecesList

This commit is contained in:
2025-03-01 18:24:09 +01:00
parent 13ee43167e
commit 66c2cf1013
4 changed files with 155 additions and 34 deletions

View File

@@ -20,7 +20,7 @@ Bag::Bag(std::shared_ptr<PiecesList> piecesList) :
}
Piece Bag::lookNext() {
return *this->piecesList->getPiece(this->next.first, this->next.second);
return this->piecesList->getPiece(this->next);
}
Piece Bag::getNext() {
@@ -31,7 +31,7 @@ Piece Bag::getNext() {
this->prepareNext();
// return the next piece
return *this->piecesList->getPiece(nextIndex.first, nextIndex.second);
return this->piecesList->getPiece(nextIndex);
}
void Bag::prepareNext() {