示例#1
0
  /** 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;
  }
示例#2
0
 /** Shrinks the Eel's mouth. */
 public void shrinkMouth() {
   mouth.setMaxWidth(MOUTH_WIDTH);
   mouth.setHeight(MOUTH_HEIGHT);
   this.setRadius(getRadius() / 2);
   enlargedMouth = false;
 }