Esempio n. 1
0
  @Override
  public void onAttackComplete() {

    AttackIndicator.target(enemy);

    attack(enemy);
    curAction = null;

    Invisibility.dispel();

    super.onAttackComplete();
  }
  @Override
  public void onComplete(Animation anim) {

    if (animCallback != null) {
      animCallback.call();
      animCallback = null;
    } else {

      if (anim == attack) {

        idle();
        ch.onAttackComplete();

      } else if (anim == zap) {
        idle();
        ch.onZapComplete();

      } else if (anim == operate) {

        idle();
        ch.onOperateComplete();
      }
    }
  }