minas please help no serialization
This commit is contained in:
@@ -19,5 +19,9 @@ public enum PieceState {
|
||||
/**
|
||||
* The piece is finished.
|
||||
*/
|
||||
HOMEFINISHED
|
||||
HOMEFINISHED;
|
||||
|
||||
public PieceState next() {
|
||||
return values()[(ordinal() + 1) % values().length];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user