static void Main(string[] args) { IList <ICharacter> team1 = new List <ICharacter>(); IList <ICharacter> team2 = new List <ICharacter>(); /* Make Characters */ ICharacter whitaker = new Mage("Whitaker"); ICharacter judo = new Warrior("Judo"); ICharacter dan = new Mage("Daniel"); ICharacter connor = new Warrior("Connor"); ICharacter Joe = new Mage("Joe"); ICharacter Jim = new Warrior("Jim"); /* add character to teams */ team1.Add(dan); team1.Add(connor); team2.Add(whitaker); team2.Add(judo); team2.Add(Joe); team2.Add(Jim); Combat fightTime = new Combat(team1, team2, "Alpha Male", "Star"); fightTime.AutoBattle(); }
static void Main(string[] args) { IList <ICharacter> playerParty = generateParty(); IList <ICharacter> enemyParty = generateParty(); Combat cbat = new Combat(playerParty, enemyParty, "Player Party", "Enemy Party"); cbat.AutoBattle(); }
// private combat combat; static void Main(string[] args) { // battle = new Combat IList <ICharacter> playerParty1 = new List <ICharacter>(); //Create Parties IList <ICharacter> playerParty2 = new List <ICharacter>(); string groupName1 = "Good_Guys"; //Give Parties names string groupName2 = "Bad_Guys"; playerParty1.Add(new Mage("Gandalf")); //Add the good guys playerParty1.Add(new Warrior("Boromir")); playerParty2.Add(new Archer("Bow guy")); //Add the bad guys playerParty2.Add(new ComputerWizard("Machine Language")); ICombat battle = new Combat(playerParty1, playerParty2, groupName1, groupName2); //Create Icombat for AutoBattle battle.AutoBattle(); //Start Auto Battle while (true) { } }
static void Main(string[] args) { ICharacter player1 = new Mage("Gandalf"); ICharacter player2 = new Warrior("Boromir"); ICharacter player3 = new ComputerWizard("Tim"); ICharacter player4 = new Archer("Robin"); IList <ICharacter> playerParty = new List <ICharacter>(); IList <ICharacter> enemyParty = new List <ICharacter>(); playerParty.Add(player1); playerParty.Add(player2); enemyParty.Add(player3); enemyParty.Add(player4); ICombat combat = new Combat(playerParty, enemyParty, "Allies", "Baddies"); combat.AutoBattle(); Console.ReadLine(); }