public DefPosManager(ConsoleBox CB) { ConsoleBox = CB; AllyDefPosts = new List <DefPos>(); EnemyDefPosts = new List <DefPos>(); ConsoleBox.WriteLineToConsole("Defence Position Manager READY!"); }
public UnitsManager(ConsoleBox CB, LandManager LM) { Ally = new List <IUnit>(); Enemy = new List <IUnit>(); Prototype = new List <UnitPrototype>(); ConsoleBox = CB; LandManager = LM; ConsoleBox.WriteLineToConsole("UnitManager READY!"); }
public LandManager(ConsoleBox CB) { ConsoleBox = CB; ActualWeather = new Weather(); ActualWeather.Enable = true; ActualLandLand = new Land(); ActualLandLand.Enable = true; ConsoleBox.WriteLineToConsole("Land Manager READY!"); }
public SimulatorManager(ConsoleBox CB, CheckedListBox DBA, CheckedListBox UBA, CheckedListBox DBB, CheckedListBox UBB) { ConsoleBox = CB; DefPosBoxA = DBA; UnitsBoxA = UBA; DefPosBoxE = DBB; UnitsBoxE = UBB; LandManager = new LandManager(ConsoleBox); UnitManager = new UnitsManager(ConsoleBox, LandManager); DefenceManager = new DefPosManager(ConsoleBox); OnSimulationDone += ProcessResult; ConsoleBox.WriteLineToConsole("Simulator Manager READY!"); ConsoleBox.WriteLineToConsole("SYSTEM READY!", ConsoleBox.LineType.Bold); }
public void WriteAllDefposToConsole(ConsoleBox CB) { CB.WriteLineToConsole("\t\t ALLY DEFENCE POSITION", ConsoleBox.LineType.Bold); foreach (DefPos D in AllyDefPosts) { CB.WriteLineToConsole(D.ToString(), ConsoleBox.LineType.Star); foreach (IUnit U in D.getUnitsList()) { CB.WriteLineToConsole(U.ToLongString()); } } CB.WriteLineToConsole("\t\t ENEMY DEFENCE POSITION", ConsoleBox.LineType.Bold); foreach (DefPos D in EnemyDefPosts) { CB.WriteLineToConsole(D.ToString(), ConsoleBox.LineType.Star); foreach (IUnit U in D.getUnitsList()) { CB.WriteLineToConsole(U.ToLongString()); } } }
public TBS() { InitializeComponent(); PrimalConsole = new ConsoleBox(rt_console); PrimalManager = new SimulatorManager(PrimalConsole, a_chlw_defpos, a_chlw_units, e_chlw_defpos, e_chlw_units); }