private void updateAttacking ( ) { if ( tick . elapsed ( attackPause ) ) { updateAttackHit ( ) ; } else if ( attacked ) { if ( AnimState . FINISHED == animator . getAnimState ( ) ) { for ( final AttackerListener listener : listeners ) { listener . notifyAttackAnimEnded ( ) ; } attacked = false ; state = AttackState . CHECK ; } } else { for ( final AttackerListener listener : listeners ) { listener . notifyPreparingAttack ( ) ; } } }
Update the attacking case .