public void RapidStrike(Beast enemy) { if (ComputeChance() <= 10) { Logger.AddToLog("\t" + myBeast.name + " used Rapid Strike."); enemy.getDamage(myBeast.Attack(enemy)); } }
public bool HaveWorseLuck(Beast other) { return(myBeast.HaveWorseLuck(other)); }
public bool HaveEqualSpeed(Beast other) { return(myBeast.HaveEqualSpeed(other)); }
public bool HaveWorseSpeed(Beast other) { return(myBeast.HaveWorseSpeed(other)); }
public int Attack(Beast enemy) { RapidStrike(enemy); return(myBeast.Attack(enemy)); }
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)); }
public Hero(string name, int hp, int str, int def, int speed, int luck) { myBeast = new Beast(name, hp, str, def, speed, luck); }
public bool HaveWorseLuck(Beast other) { return(luck < other.luck); }
public bool HaveEqualSpeed(Beast other) { return(speed == other.speed); }
public bool HaveWorseSpeed(Beast other) { return(speed < other.speed); }
public int Attack(Beast enemy) { Logger.AddToLog("\t" + this.name + " attacked " + enemy.name + " for " + strength + " damage."); return(strength); }
public Game() { hero = new Hero("Orderus"); beast = new Beast("Evil Beast"); }