Inheritance: IDisposable
Esempio n. 1
0
        public ITSBooster(string craftDirectory, DVector2 position, DVector2 velocity, double propellantMass = 6078138)
            : base(craftDirectory, position, velocity, 0, propellantMass, "Textures/itsBooster.png")
        {
            StageOffset = new DVector2(0, 59.5);

            Engines = new IEngine[42];

            for (int i = 0; i < 42; i++)
            {
                double engineOffsetX = (i - 21.0) / 21.0;

                var offset = new DVector2(engineOffsetX * Width * 0.34, Height * 0.48);

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

            _spriteSheet = new SpriteSheet("Textures/itsBooster.png", 4, 12);
        }
Esempio n. 2
0
        public ITSShip(string craftDirectory, DVector2 position, DVector2 velocity, double payloadMass, double propellantMass = 1769010)
            : base(craftDirectory, position, velocity, payloadMass, propellantMass, null)
        {
            Engines = new IEngine[9];

            // Raptor Vac engines
            for (int i = 0; i < 6; i++)
            {
                double engineOffsetX = (i - 2.5) / 2.5;

                var offset = new DVector2(engineOffsetX * Width * 0.25, Height * 0.48);

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

            // Raptor SL 50 engines
            Engines[6] = new Raptor50(6, this, new DVector2(-2, Height * 0.48));
            Engines[7] = new Raptor50(7, this, new DVector2(0, Height * 0.48));
            Engines[8] = new Raptor50(8, this, new DVector2(2, Height * 0.48));

            _spriteSheet = new SpriteSheet("Textures/itsShip.png", 12, 12);

            this.payloadMass = payloadMass;
        }