Esempio n. 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;
    }
Esempio n. 3
0
 public void HandleAttack()
 {
     attackBehavior.Attack();
 }
Esempio n. 4
0
 public virtual void PerformAttack(ICharacter target)
 {
     AttackBehavior.Attack(this, target);
 }
Esempio n. 5
0
 public void PerformAttack()
 {
     attackBehavior.Attack();
 }