/** Enlarges the Eel's mouth. */ public void enlargeMouth() { if (enlargedMouth) return; mouthTimer.reset(); mouthTimer.start(); mouth.setMaxWidth(MOUTH_WIDTH * 2); mouth.setHeight(MOUTH_HEIGHT * 2); mouth.setClosed(false); this.setRadius(getRadius() * 2); enlargedMouth = true; }
/** Shrinks the Eel's mouth. */ public void shrinkMouth() { mouth.setMaxWidth(MOUTH_WIDTH); mouth.setHeight(MOUTH_HEIGHT); this.setRadius(getRadius() / 2); enlargedMouth = false; }