/// <summary> /// Advance the simulation by a single step /// </summary> public void Advance() { // Advance all vehicles and their assigned orders Vehicles.ForEach(v => v.AdvanceNew()); SimulationStep++; }
public void Output()//method of outputting content of motorcade { Console.WriteLine($"Motorcade under the direction of Chief: {Chief}"); Console.WriteLine("Garages:"); Garages.ForEach(garage => Console.WriteLine(garage)); Console.WriteLine("Vehicles:"); Vehicles.ForEach(vehicle => Console.WriteLine(vehicle)); }
public void Unhide() { if (Type != InteriorType.Gta) { return; } if (!_hidden) { return; } Peds.ForEach(p => p.IsVisible = true); Vehicles.ForEach(v => v.IsVisible = true); Props.ForEach(p => p.IsVisible = true); _hidden = false; }