public void RecruitInfantry() { var faction = new Infantry(); var counter = 0; for (var i = 0; i < 6; i++) { var soldier = new StormTrooper(); if (counter > 3) { soldier.Weapon = new BlasterRifle(); counter++; } else { soldier.Weapon = faction.StandardIssueWeapon; counter = 0; } faction.Soldiers.Add(soldier); } Legion.Factions.Add(faction); }
public void RecruitReconnaissance() { var faction = new Reconnaissance(); var counter = 0; for (var i = 0; i < 5; i++) { ICharacter soldier; if (counter > 2) { soldier = new Sith(); counter++; } else { soldier = new StormTrooper(); counter = 0; } soldier.Weapon = faction.StandardIssueWeapon; faction.Soldiers.Add(soldier); } Legion.Factions.Add(faction); }