changed facade

This commit is contained in:
2018-03-08 16:52:17 +01:00
parent 8d28f1f214
commit 5ce16f8793

View File

@@ -53,9 +53,13 @@ public class Facade implements IFacade {
*/
@Override
public void jump(Worm worm) throws ModelException {
try {
worm.jump();
}
catch(IllegalStateException e) {
throw new ModelException(e);
}
}
/**
* Returns the total amount of time (in seconds) that a jump of the given worm