mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 19:04:49 +00:00
added method for sorting the flipped pieces by distance to Move.position
This commit is contained in:
@@ -83,6 +83,11 @@ public abstract class GameCanvas {
|
||||
graphics.clearRect(0, 0, width, height);
|
||||
}
|
||||
|
||||
public void clearCell(int cellIndex) {
|
||||
Cell cell = cells[cellIndex];
|
||||
graphics.clearRect(cell.x, cell.y, cell.width, cell.height);
|
||||
}
|
||||
|
||||
public void render() {
|
||||
graphics.setFill(color);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user