@Override public void move(int from, int to) { super.move(from, to); if (ch.flying) { play(fly); } Camera.main.target = this; }
@Override public void onComplete(Animation anim) { super.onComplete(anim); if (anim == die) { parent.add( new AlphaTweener(this, 0, FADE_TIME) { @Override protected void onComplete() { MobSprite.this.killAndErase(); parent.erase(this); }; }); } }
@Override public void update() { sleeping = ch != null && ((Mob) ch).state == ((Mob) ch).SLEEPEING; super.update(); }
@Override public void place(int p) { super.place(p); Camera.main.target = this; }
@Override public void update() { sleeping = ch.isAlive() && ((Hero) ch).resting; super.update(); }
@Override public void jump(int from, int to, Callback callback) { super.jump(from, to, callback); play(fly); }