17 lines
417 B
Java
17 lines
417 B
Java
package j2025.FT;
|
|
|
|
abstract class State {
|
|
void checkValue() {}
|
|
|
|
void rollTheDice() {
|
|
throw new InvalidAction("You must not roll the dice in state " + this);
|
|
}
|
|
|
|
void announce(PairOfDice value) {
|
|
throw new InvalidAction("You must not announce a value in state " + this);
|
|
}
|
|
|
|
void callLiar() {
|
|
throw new InvalidAction("You must not call liar in state " + this);
|
|
}
|
|
} |