Files
OOP-Klausuren/src/j2025/FT/State.java
2026-05-12 15:23:08 +02:00

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);
}
}