Exemple #1
0
 //Performs the attack behavior.  Virtual means this method can be overridden by a subclass.
 public virtual void DoAttack()
 {
     AttackBehavior.Attack();
 }
    private void Figth(HealthBehaviour health)
    {
        AttackBehavior.Attack(health, Idle);

        StateCurrent = State.Figth;
    }
Exemple #3
0
 public void HandleAttack()
 {
     attackBehavior.Attack();
 }
Exemple #4
0
 public virtual void PerformAttack(ICharacter target)
 {
     AttackBehavior.Attack(this, target);
 }
Exemple #5
0
 public void PerformAttack()
 {
     attackBehavior.Attack();
 }