Beispiel #1
0
  public void setLife(float time) {

    life =
        new MyTimer(time) {

          @Override
          protected void perform() {
            alive = false;
          }
        };
    life.reset();
    life.start();
  }
Beispiel #2
0
 @Override
 public void reset() {
   alive = false;
   setX(0);
   setY(0);
   setWidth(0);
   setHeight(0);
   wrapWidth = 0;
   text = "";
   life.reset();
   life.pause();
   follow = false;
   followed = null;
 }