Esempio n. 1
0
        protected virtual void CreateVehiculeCustomChoice(int _serial, VehiculeColor _selectedColor)
        {
            Vehicule _vehicule = new Vehicule(_serial, _selectedColor, 1);

            factory.CreateVehicule(_vehicule);
            ShowMenu();
        }
Esempio n. 2
0
        public virtual void CreateVehicule()
        {
            //Vehicule _default = new Vehicule();
            Vehicule _default = new Vehicule(4578, VehiculeColor.Cyan, 1, "Toyota");

            FactoryVehicules.Add(_default);
            _default.Start();
            _default.Stop();
        }
        public override void CreateVehicule(Vehicule _vehicule)
        {
            Boat _boat = (Boat)_vehicule;

            _boat.Start();
            _boat.Navigate();
            _boat.ThrowAnchor();
            _boat.Stop();
            FactoryVehicules.Add(_boat);
        }
Esempio n. 4
0
        public override void CreateVehicule(Vehicule _vehicule)
        {
            Plane _plane = (Plane)_vehicule;

            _plane.Start();
            _plane.Fly();
            _plane.Land();
            _plane.Stop();
            FactoryVehicules.Add(_plane);
        }
Esempio n. 5
0
        public override void CreateVehicule(Vehicule _vehicule)
        {
            Car _car = (Car)_vehicule;

            _car.Start();
            _car.Drive();
            _car.Brake();
            _car.Stop();
            FactoryVehicules.Add(_car);
        }
Esempio n. 6
0
 public virtual void CreateVehicule(Vehicule _vehicule)
 {
     _vehicule.Start();
     _vehicule.Stop();
     FactoryVehicules.Add(_vehicule);
 }