示例#1
0
 public void RapidStrike(Beast enemy)
 {
     if (ComputeChance() <= 10)
     {
         Logger.AddToLog("\t" + myBeast.name + " used Rapid Strike.");
         enemy.getDamage(myBeast.Attack(enemy));
     }
 }
示例#2
0
 public bool HaveWorseLuck(Beast other)
 {
     return(myBeast.HaveWorseLuck(other));
 }
示例#3
0
 public bool HaveEqualSpeed(Beast other)
 {
     return(myBeast.HaveEqualSpeed(other));
 }
示例#4
0
 public bool HaveWorseSpeed(Beast other)
 {
     return(myBeast.HaveWorseSpeed(other));
 }
示例#5
0
 public int Attack(Beast enemy)
 {
     RapidStrike(enemy);
     return(myBeast.Attack(enemy));
 }
示例#6
0
        public Hero(string name)
        {
            Random rnd = new Random();

            myBeast = new Beast(name, rnd.Next(70, 100), rnd.Next(70, 80), rnd.Next(45, 55), rnd.Next(40, 50), rnd.Next(10, 30));
        }
示例#7
0
 public Hero(string name, int hp, int str, int def, int speed, int luck)
 {
     myBeast = new Beast(name, hp, str, def, speed, luck);
 }
示例#8
0
 public bool HaveWorseLuck(Beast other)
 {
     return(luck < other.luck);
 }
示例#9
0
 public bool HaveEqualSpeed(Beast other)
 {
     return(speed == other.speed);
 }
示例#10
0
 public bool HaveWorseSpeed(Beast other)
 {
     return(speed < other.speed);
 }
示例#11
0
 public int Attack(Beast enemy)
 {
     Logger.AddToLog("\t" + this.name + " attacked " + enemy.name + " for " + strength + " damage.");
     return(strength);
 }
示例#12
0
 public Game()
 {
     hero  = new Hero("Orderus");
     beast = new Beast("Evil Beast");
 }