Пример #1
0
 public override void Attack(Warrior dinosaur)
 {
     dinosaur.health -= weapon.attackPower;
 }
Пример #2
0
 public override void Attack(Warrior robot)
 {
     robot.health -= attackPower;
 }
Пример #3
0
 public bool CheckHasDied(Warrior dinosaur)
 {
     return(dinosaur.Health <= 0);
 }
Пример #4
0
 public float Attack(Warrior targetWarrior)
 {
     return(targetWarrior.GetHit(this, AttackPower));
 }
Пример #5
0
 public float GetHit(Warrior attackingWarrior, float attackHitAmount)
 {
     Health -= attackHitAmount;
     return(attackHitAmount);
 }
Пример #6
0
 public abstract float ComputerChooseAttackType(Warrior warrior, Herd herd, Random rng);
Пример #7
0
 public abstract int WarriorAttack(Warrior targetWarrior);
Пример #8
0
 public abstract float HumanChooseAttackType(Warrior warrior, Random rng, Battlefield currentBattlefield);
Пример #9
0
 public override int WarriorAttack(Warrior targetWarrior)
 {
     throw new NotImplementedException();
 }
Пример #10
0
 public abstract void Attack(Warrior warrior);
Пример #11
0
 public override float ComputerChooseAttackType(Warrior warrior, Herd herd, Random rng)
 {
     throw new NotImplementedException();
 }
Пример #12
0
 public override float HumanChooseAttackType(Warrior warrior, Random rng, Battlefield currentBattlefield)
 {
     throw new NotImplementedException();
 }