March 17, 20169 yr Is there a cleaner way than the following snippet to set the timeout of a WalkingEvent? While we're at it, what is the default timeout for a WalkingEvent? (walkingTimer is a timer class) walkingTimer.reset(); WalkingEvent walkingEvent = new WalkingEvent(voidKnightArea); walkingEvent.setBreakCondition(new Condition() { @Override public boolean evaluate() { return walkingTimer.getElapsedSeconds() > 10; } }); execute(walkingEvent); Cheerseroni
Create an account or sign in to comment