예제 #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();
 }