private void Build() { foreach (var type in Enum.GetValues(typeof(TypeEntite))) { int n = 0; TypeEntite t = (TypeEntite)type; while (n < _reserveAstronef.NombreUnite(t)) { _reserve.AddUnit(UnitFactory.BuildUnitHMI(t, null, _spaceship.Unite.Joueur)); n++; } } }
private void BuildReserve() { Spaceship spaceship = UnitFactory.BuildUnitHMI(TypeEntite.ASTRONEF, null, _player.Joueur) as Spaceship; _unitList.AddUnit(spaceship); }