Inheritance: EngineBase
Exemple #1
0
        public FHBooster(int id, DVector2 position, DVector2 velocity)
            : base(position, velocity, 409500, "Textures/fhBooster" + id  + ".png")
        {
            Id = id;

            if (Id == 1)
            {
                StageOffset = new DVector2(-4, 1.5);
            }
            else
            {
                StageOffset = new DVector2(4, 1.5);
            }

            Engines = new IEngine[9];

            for (int i = 0; i < 9; i++)
            {
                double engineOffsetX = (i - 4.0) / 4.0;

                var offset = new DVector2(engineOffsetX * Width * 0.3, Height * 0.45);

                Engines[i] = new Merlin1D(i, this, offset);
            }
        }
Exemple #2
0
        public F9S1(string craftDirectory, DVector2 position, DVector2 velocity, double propellantMass = 398887)
            : base(craftDirectory, position, velocity, propellantMass, "Textures/f9S1.png")
        {
            StageOffset = new DVector2(0, 25.5);

            Engines = new IEngine[9];

            for (int i=0; i < 9; i++)
            {
                double engineOffsetX = (i - 4.0) / 4.0;

                var offset = new DVector2(engineOffsetX * Width * 0.3, Height * 0.45);

                Engines[i] = new Merlin1D(i, this, offset);
            }
        }
Exemple #3
0
        public FH9S1(DVector2 position, DVector2 velocity)
            : base(position, velocity, 409500, "Textures/fh9S1.png")
        {
            StageOffset = new DVector2(0, 25.5);

            Engines = new IEngine[9];

            for (int i=0; i < 9; i++)
            {
                double engineOffsetX = (i - 4.0) / 4.0;

                var offset = new DVector2(engineOffsetX * Width * 0.3, Height * 0.45);

                Engines[i] = new Merlin1D(i, this, offset);
            }
        }
Exemple #4
0
        public FHBooster(string craftDirectory, int id, DVector2 position, DVector2 velocity)
            : base(craftDirectory, position, velocity, 398887, "Textures/fhBooster" + id + ".png", -17.8)
        {
            Id = id;

            StageOffset = Id == 1 ? new DVector2(-4, 1.5) : new DVector2(4, 1.5);

            Engines = new IEngine[9];

            for (int i = 0; i < 9; i++)
            {
                double engineOffsetX = (i - 4.0) / 4.0;

                var offset = new DVector2(engineOffsetX * Width * 0.3, Height * 0.45);

                Engines[i] = new Merlin1D(i, this, offset);
            }
        }