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