changed facade
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user