Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
FLAK-ZOSO committed Jun 18, 2023
1 parent c655d9e commit b4a91ac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,15 @@ void reset() {
}
}
```

## v`0.9.4`

- Added `sista::Field::addPrintPawn()` to add and print Pawn without reprint

```c++
void addPrintPawn(Pawn* pawn) { // Add a pawn to the matrix and print it
addPawn(pawn); // Add the pawn to the matrix
this->cursor.set(pawn->getCoordinates()); // Set the cursor to the pawn's coordinates
pawn->print(); // Print the pawn
}
```
1 change: 1 addition & 0 deletions docs/sista.rst
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ This header also contains the following "abstract" class used to represent a fie
virtual void addPawn(Pawn*);
virtual void removePawn(Pawn*);
void addPrintPawn(Pawn*);
Pawn* getPawn(Coordinates&);
void movePawn(Pawn*, Coordinates&);
Expand Down

0 comments on commit b4a91ac

Please sign in to comment.