public void MyCode() { // The FIRST line of code should be BELOW this line AggregationCalculation <bool, bool> deadCalc = new Dead(); AggregationCalculation <int, int> dealDamageCalc = new DealDamage(); ApplyCalculation <int> receiveDamageApply = new ReceiveDamageOneGetsAll(); ApplyAction logSurvivorApply = new LogSurvivor(); CharacterGroup redTeam = new CharacterGroup("Team Red", deadCalc, dealDamageCalc, receiveDamageApply, logSurvivorApply); redTeam.AddCharacter(new Defender("Thorbjorn", 340, 8, 12)); redTeam.AddCharacter(new Character("Angor", 200, 15, 25)); redTeam.AddCharacter(new Character("Zurin", 170, 18, 30)); redTeam.AddCharacter(new Damager("Allarin", 100, 15, 25)); CharacterGroup greenTeam = new CharacterGroup("Team Green", deadCalc, dealDamageCalc, receiveDamageApply, logSurvivorApply); greenTeam.AddCharacter(new Defender("Olaf", 400, 7, 13)); greenTeam.AddCharacter(new Character("Baldur", 210, 12, 18)); greenTeam.AddCharacter(new Character("Eliza", 160, 20, 35)); greenTeam.AddCharacter(new Damager("Bezuron", 90, 10, 30)); BattleHandler.DoBattle(redTeam, greenTeam); // The LAST line of code should be ABOVE this line }
public void MyCode() { // The FIRST line of code should be BELOW this line CharacterGroup redTeam = new CharacterGroup("Team Red"); redTeam.AddCharacter(new Character("Angor", 100, 15, 25)); redTeam.AddCharacter(new Character("Zurin", 85, 18, 30)); CharacterGroup greenTeam = new CharacterGroup("Team Green"); greenTeam.AddCharacter(new Character("Baldur", 120, 12, 18)); greenTeam.AddCharacter(new Character("Eliza", 80, 20, 35)); BattleHandler.DoBattle(redTeam, greenTeam); // The LAST line of code should be ABOVE this line }
public void MyCode() { // The FIRST line of code should be BELOW this line CharacterGroup redTeam = new CharacterGroup("Team Red"); redTeam.AddCharacter(new Defender("Thorbjorn", 340, 8, 12)); redTeam.AddCharacter(new Character("Angor", 200, 15, 25)); redTeam.AddCharacter(new Character("Zurin", 170, 18, 30)); redTeam.AddCharacter(new Damager("Allarin", 100, 15, 25)); CharacterGroup greenTeam = new CharacterGroup("Team Green"); greenTeam.AddCharacter(new Defender("Olaf", 400, 7, 13)); greenTeam.AddCharacter(new Character("Baldur", 210, 12, 18)); greenTeam.AddCharacter(new Character("Eliza", 160, 20, 35)); greenTeam.AddCharacter(new Damager("Bezuron", 90, 10, 30)); BattleHandler.DoBattle(redTeam, greenTeam); // The LAST line of code should be ABOVE this line }
public void MyCode() { // The FIRST line of code should be BELOW this line CharacterGroup redTeam = new CharacterGroup("Team Red"); redTeam.AddCharacter(new Character("Angor", 100, 15, 25)); redTeam.AddCharacter(new Character("Zurin", 85, 18, 30)); redTeam.AddCharacter(new Defender("Bob", 200, 3, 5)); redTeam.AddCharacter(new Damager("Sigurd", 10, 70, 85)); CharacterGroup greenTeam = new CharacterGroup("Team Green"); greenTeam.AddCharacter(new Character("Baldur", 120, 12, 18)); greenTeam.AddCharacter(new Character("Eliza", 80, 20, 35)); greenTeam.AddCharacter(new Defender("Per", 250, 1, 2)); greenTeam.AddCharacter(new Damager("Preben", 8, 60, 80)); BattleHandler.DoBattle(redTeam, greenTeam); // The LAST line of code should be ABOVE this line }