Пример #1
0
        public FHBooster(int id, DVector2 position, DVector2 velocity)
            : base(position, velocity, 398887, "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);
            }
        }
Пример #2
0
        //private SpriteSheet _spriteSheet;

        public MiniBFS(string craftDirectory, DVector2 position, DVector2 velocity, double payloadMass = 0, double propellantMass = 100000)
            : base(craftDirectory, position, velocity, payloadMass, propellantMass, null)
        {
            StageOffset = new DVector2(0, 0);

            Fins    = new Fin[2];
            Fins[0] = new Fin(this, new DVector2(0.2, -8.95), new DVector2(-1, 2), 0, "Textures/Spacecrafts/ITS/Canard.png");
            Fins[1] = new Fin(this, new DVector2(0.8, 8.2), new DVector2(2.38, 5.89), -Math.PI / 6);

            Engines = new IEngine[1];
            for (int i = 0; i < 1; i++)
            {
                var offset = new DVector2(0.0, Height * 0.4);
                Engines[i] = new Merlin1D(i, this, offset);
            }

            //_spriteSheet = new SpriteSheet("Textures/Spacecrafts/Its/scaledShip.png", 12, 12);

            string texturePath = "Its/miniBFS.png";
            string fullPath    = Path.Combine("Textures/Spacecrafts", texturePath);

            this.Texture = new Bitmap(fullPath);

            this.payloadMass = payloadMass;
        }
Пример #3
0
        public F9SSTO(string craftDirectory, DVector2 position, DVector2 velocity)
            : base(craftDirectory, position, velocity, 4, 409500, "Falcon/9/ssto.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);
            }
        }
Пример #4
0
        public FHS1(string craftDirectory, DVector2 position, DVector2 velocity)
            : base(craftDirectory, position, velocity, 398887, "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);
            }
        }
Пример #5
0
        public FHS1(string craftDirectory, DVector2 position, DVector2 velocity, double propellantMass = 409272)
            : base(craftDirectory, position, velocity, 5, propellantMass, "Falcon/Heavy/S1.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);
            }
        }
Пример #6
0
        public F9SSTO(DVector2 position, DVector2 velocity)
            : base(position, velocity, 409500, "Textures/f9ssto.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);
            }
        }
Пример #7
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);
            }
        }
Пример #8
0
        public FHBooster(string craftDirectory, int id, DVector2 position, DVector2 velocity, double propellantMass = 409272)
            : base(craftDirectory, position, velocity, 409272, "Falcon/Heavy/booster" + 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);
            }
        }