Esempio n. 1
0
        /// <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++;
        }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
        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;
        }