示例#1
0
  @Override
  public void onMotionComplete() {
    Dungeon.observe();
    search(false);

    super.onMotionComplete();
  }
  public void move(int from, int to) {
    play(run);

    motion = new PosTweener(this, worldToCamera(to), MOVE_INTERVAL);
    motion.listener = this;
    getParent().add(motion);

    isMoving = true;

    turnTo(from, to);

    if (getVisible() && Dungeon.level.water[from] && !ch.flying) {
      GameScene.ripple(from);
    }

    ch.onMotionComplete();
  }