static void Main(string[] args) { Random rand = new Random(); Player player = new Player(); player.Class = ClassType.Warrior; Dice statDice = new Dice(5, 6); player.PS = statDice.Roll(); //player.PS = 30; player.PP = statDice.Roll(); player.SPD = statDice.Roll(); player.HP = statDice.Roll() + (new Dice(1, 6)).Roll(); player.SDC = (new Dice(1, 10)).Roll() + 12; player.CanDodge = true; player.canParry = true; player.inventory.equippedWeapon = new SmallCrowbar(); Zed zed = new Zed(); zed.HP = rand.Next(16,21); zed.SDC = rand.Next(33,48); zed.PS = rand.Next(20, 30); zed.PP = rand.Next(2, 7); zed.SPD = 8; zed.Strike = 2; zed.canParry = true; zed.baseDamage = new Dice(1, 6); zed.ZedClass = ZedClass.Tank; Console.WriteLine("Player PP: " + player.PP + "; Player PS: " + player.PS); Console.WriteLine("Zed PP: " + zed.PP + "; Zed PS: " + zed.PS); Console.WriteLine("Player HP: " + player.HP + "; Player SDC: " + player.SDC); Console.WriteLine("Zed HP: " + zed.HP + "; Zed SDC: " + zed.SDC); Console.WriteLine(); int playerWin = 0; int zedWin = 0; CombatManager manager = new CombatManager(); for (int i = 0; i < 5; i++) { Console.WriteLine("Defender: Player HP: " + player.HP + "; Player SDC: " + player.SDC); Console.WriteLine("Attacker: Zed HP: " + zed.HP + "; Zed SDC: " + zed.SDC); manager.startCombat(zed, player); Console.WriteLine(); Console.WriteLine("Attacker: Player HP: " + player.HP + "; Player SDC: " + player.SDC); Console.WriteLine("Defender: Zed HP: " + zed.HP + "; Zed SDC: " + zed.SDC); manager.startCombat(player, zed); Console.WriteLine(); /*/ playerWin += (manager.startCombat(player, zed)) ? 1 : 0; zedWin += manager.startCombat(zed, player) ? 1 : 0; /**/ } /* Console.WriteLine(); Console.WriteLine("Player Success: " + playerWin); Console.WriteLine("Zed Success: " + zedWin); */ }
public Tank(string name) : base(name) { ZedClass = ClassZed.Tank; Strike += 2; Parry += 2; Dodge += 1; PS = DummyDice(45, min: 30); PP = DummyDice(7, min: 2); PE = DummyDice(21, min: 16); SPD = DummyDice(10, min: 7); BaseDamage = new Dice(3, 6); SCD = DummyDice(80, min: 60); HP = DummyDice(50, min: 35); MoneyValue = DummyDice(20, min: 10); }
public Spitter(string name) : base(name) { ZedClass = ClassZed.Spitter; Strike += 3; Parry -= 1; Dodge -= 1; PS = DummyDice(8, min: 5); PP = DummyDice(29, min: 19); PE = DummyDice(11, min: 7); SPD = DummyDice(8, min: 4); BaseDamage = new Dice(4, 6); ; SCD = DummyDice(15, min: 10); HP = DummyDice(20, min: 15); MoneyValue = DummyDice(15, min: 5); }
public Shank(string name) : base(name) { ZedClass = ClassZed.Shank; Strike += 3; Parry += 3; Dodge += 3; Initiative -= 1; PS = DummyDice(24, min: 19); PP = DummyDice(15, min: 10); PE = DummyDice(21, min: 16); SPD = DummyDice(20, min: 12); BaseDamage = new Dice(2, 6); SCD = DummyDice(30, min: 20); HP = DummyDice(20, min: 15); MoneyValue = DummyDice(20, min: 10); }
public FastAttack(string name) : base(name) { ZedClass = ClassZed.Fast_Attack; Strike += 2; Parry += 2; Dodge += 2; PS = DummyDice(24, min: 19); PP = DummyDice(13, min: 8); PE = DummyDice(21, min: 16); SPD = DummyDice(23, min: 17); BaseDamage = new Dice(1, 6); BonusDamage = 3; SCD = DummyDice(48, min: 33); HP = DummyDice(21, min: 16); MoneyValue = DummyDice(15, min: 5); }
public Spitter(string name) : base(name, new BitmapImage(new Uri("Images/Spitter.png", UriKind.Relative))) { ZedClass = ClassZed.Spitter; Strike += 3; Parry -= 1; Dodge -= 1; PS = DummyDice(8, min: 5); PP = DummyDice(29, min: 19); PE = DummyDice(11, min: 7); SPD = DummyDice(8, min: 4); BaseDamage = new Dice(4, 6); ; SCD = DummyDice(15, min: 10); HP = DummyDice(20, min: 15); MoneyValue = DummyDice(15, min: 5); getItem(); }
public Tank(string name) : base(name, new BitmapImage(new Uri("Images/Tank.png", UriKind.Relative))) { ZedClass = ClassZed.Tank; Strike += 2; Parry += 2; Dodge += 1; PS = DummyDice(45, min: 30); PP = DummyDice(7, min: 2); PE = DummyDice(21, min: 16); SPD = DummyDice(10, min: 7); BaseDamage = new Dice(3, 6); SCD = DummyDice(80, min: 60); HP = DummyDice(50, min: 35); MoneyValue = DummyDice(20, min: 10); getItem(); }
public FastAttack(string name) : base(name, new BitmapImage(new Uri("Images/FastAttack.png", UriKind.Relative))) { ZedClass = ClassZed.Fast_Attack; Strike += 2; Parry += 2; Dodge += 2; PS = DummyDice(24, min: 19); PP = DummyDice(13, min: 8); PE = DummyDice(21, min: 16); SPD = DummyDice(23, min: 17); BaseDamage = new Dice(1, 6); BonusDamage = 3; SCD = DummyDice(48, min: 33); HP = DummyDice(21, min: 16); MoneyValue = DummyDice(15, min: 5); getItem(); }
public Shank(string name) : base(name, new BitmapImage(new Uri("Images/Shank.png", UriKind.Relative))) { ZedClass = ClassZed.Shank; Strike += 3; Parry += 3; Dodge += 3; Initiative -= 1; PS = DummyDice(24, min: 19); PP = DummyDice(15, min: 10); PE = DummyDice(21, min: 16); SPD = DummyDice(20, min: 12); BaseDamage = new Dice(2, 6); SCD = DummyDice(30, min: 20); HP = DummyDice(20, min: 15); MoneyValue = DummyDice(20, min: 10); getItem(); }