minas please help no serialization

This commit is contained in:
Fleischer Hanno
2024-12-02 02:07:02 +01:00
parent 413f35d7bf
commit bfc812b003
3 changed files with 14 additions and 3 deletions

View File

@@ -19,5 +19,9 @@ public enum PieceState {
/**
* The piece is finished.
*/
HOMEFINISHED
HOMEFINISHED;
public PieceState next() {
return values()[(ordinal() + 1) % values().length];
}
}

View File

@@ -15,5 +15,10 @@ public enum ShieldState {
/**
* The shield is suppressed, when the piece is on a start node.
*/
SUPPRESSED
SUPPRESSED;
public ShieldState next() {
return values()[(ordinal() + 1) % values().length];
}
}