static void Main(string[] args) { GestionCombat test=new GestionCombat(); while (true) { test.AttaquerEquipeAleatoire(); Console.ReadKey(); } }
private void InitGestion() { gestionCombat = new GestionCombat(new GestionEquipe(3,2,1, false, (int)CanvasCombat.Width,(int) CanvasCombat.Height), new GestionEquipe(3,3,3, true, (int)CanvasCombat.Width,(int) CanvasCombat.Height)); gestionCombat.EquipeGentils.onIsDead += MortCombattant; gestionCombat.EquipeMechants.onIsDead += MortCombattant; gestionCombat.onIsOver += RetourMenu; foreach (var combattant in gestionCombat.EquipeGentils.ListeCombattants) { combattant.PropertyChanged += combattant_PropertyChanged; } foreach (var combattant in gestionCombat.EquipeMechants.ListeCombattants) { combattant.PropertyChanged += combattant_PropertyChanged; } }