changed facade
This commit is contained in:
@@ -53,9 +53,13 @@ public class Facade implements IFacade {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void jump(Worm worm) throws ModelException {
|
public void jump(Worm worm) throws ModelException {
|
||||||
|
try {
|
||||||
worm.jump();
|
worm.jump();
|
||||||
}
|
}
|
||||||
|
catch(IllegalStateException e) {
|
||||||
|
throw new ModelException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the total amount of time (in seconds) that a jump of the given worm
|
* Returns the total amount of time (in seconds) that a jump of the given worm
|
||||||
|
Reference in New Issue
Block a user