Пример #1
0
        public void CreateEngine()
        {
            Valves   = new List <Valve>();
            Gears    = new List <Gear>();
            FuelBomb = new FuelBomb();

            this.FuelBomb.ActualState             = FuelBombState.Off;
            this.FuelBomb.Durability              = 300;
            this.FuelBomb.QuantityOfFuelPerSecond = 3;

            this.Valves.Add(new Valve {
                ActualState = State.Open, Durability = 10
            });
            this.Valves.Add(new Valve {
                ActualState = State.Close, Durability = 10
            });
            this.Valves.Add(new Valve {
                ActualState = State.Open, Durability = 10
            });
            this.Valves.Add(new Valve {
                ActualState = State.Open, Durability = 10
            });
            this.Valves.Add(new Valve {
                ActualState = State.Stuck, Durability = 10
            });
            this.Valves.Add(new Valve {
                ActualState = State.Open, Durability = 10
            });
            this.Valves.Add(new Valve {
                ActualState = State.Open, Durability = 10
            });
            this.Valves.Add(new Valve {
                ActualState = State.Open, Durability = 10
            });

            this.Gears.Add(new Gear {
                Diameter = 40, Durability = 10, NumberOfTeeths = 300
            });
            this.Gears.Add(new Gear {
                Diameter = 40, Durability = 10, NumberOfTeeths = 300
            });
            this.Gears.Add(new Gear {
                Diameter = 40, Durability = 10, NumberOfTeeths = 300
            });
            this.Gears.Add(new Gear {
                Diameter = 40, Durability = 10, NumberOfTeeths = 300
            });
            this.Gears.Add(new Gear {
                Diameter = 40, Durability = 10, NumberOfTeeths = 300
            });
            this.Gears.Add(new Gear {
                Diameter = 40, Durability = 10, NumberOfTeeths = 300
            });
            this.Gears.Add(new Gear {
                Diameter = 40, Durability = 10, NumberOfTeeths = 300
            });
            this.Gears.Add(new Gear {
                Diameter = 40, Durability = 10, NumberOfTeeths = 300
            });
        }
Пример #2
0
 public EngineFacade()
 {
     Valves   = new List <Valve>();
     Gears    = new List <Gear>();
     FuelBomb = new FuelBomb();
 }