예제 #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++;
        }
예제 #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));
 }
예제 #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;
        }