Executing Hamster commands in Initialized Mode via SimpleHamsterGame
For the programm
class MyHamsterProgram extends SimpleHamsterGame {
@Override
protected void run() {
game.initialize();
this.displayInNewGameWindow();
// game.startGame();
paule.move();
}
}
I do not get an Exception nor is an alert shown. This is because the logic is based on the assumption, that a non-running or non-paused program was requested to cancel and hence, throws exceptions to stop the program but which are ignored to implement the abort. However, for the above program this is not correct. This one should indeed end in an exception of calling a hamster command in a non-running program. Maybe it is a clean solution to introduce an Mode.Aborting mode which implements the abort and is automatically converted into Mode.Stop once the hamster program has ended?