Example #1
0
 public void RapidStrike(Beast enemy)
 {
     if (ComputeChance() <= 10)
     {
         Logger.AddToLog("\t" + myBeast.name + " used Rapid Strike.");
         enemy.getDamage(myBeast.Attack(enemy));
     }
 }
Example #2
0
 public bool HaveWorseLuck(Beast other)
 {
     return(myBeast.HaveWorseLuck(other));
 }
Example #3
0
 public bool HaveEqualSpeed(Beast other)
 {
     return(myBeast.HaveEqualSpeed(other));
 }
Example #4
0
 public bool HaveWorseSpeed(Beast other)
 {
     return(myBeast.HaveWorseSpeed(other));
 }
Example #5
0
 public int Attack(Beast enemy)
 {
     RapidStrike(enemy);
     return(myBeast.Attack(enemy));
 }
Example #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));
        }
Example #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);
 }
Example #8
0
 public bool HaveWorseLuck(Beast other)
 {
     return(luck < other.luck);
 }
Example #9
0
 public bool HaveEqualSpeed(Beast other)
 {
     return(speed == other.speed);
 }
Example #10
0
 public bool HaveWorseSpeed(Beast other)
 {
     return(speed < other.speed);
 }
Example #11
0
 public int Attack(Beast enemy)
 {
     Logger.AddToLog("\t" + this.name + " attacked " + enemy.name + " for " + strength + " damage.");
     return(strength);
 }
Example #12
0
 public Game()
 {
     hero  = new Hero("Orderus");
     beast = new Beast("Evil Beast");
 }