//private SpriteSheet _spriteSheet; public BFS(string craftDirectory, DVector2 position, DVector2 velocity, double payloadMass = 0, double propellantMass = 1100000) : base(craftDirectory, position, velocity, payloadMass, propellantMass, null) { StageOffset = new DVector2(0, 0); Engines = new IEngine[6]; // Raptor Vac engines for (int i = 0; i < 4; i++) { double engineOffsetX = (i - 1.5) / 1.5; var offset = new DVector2(engineOffsetX * Width * 0.25, Height * 0.45); Engines[i] = new RaptorVac(i, this, offset); } // Raptor SL engines for (int i = 4; i < 6; i++) { double engineOffsetX = (i - 4.0) / 2.0; var offset = new DVector2(engineOffsetX * Width * 0.1, Height * 0.475); Engines[i] = new RaptorSL(i, this, offset); } //_spriteSheet = new SpriteSheet("Textures/Spacecrafts/Its/scaledShip.png", 12, 12); string texturePath = "Its/BFS.png"; string fullPath = Path.Combine("Textures/Spacecrafts", texturePath); this.Texture = new Bitmap(fullPath); this.payloadMass = payloadMass; }
public ITSShip(string craftDirectory, DVector2 position, DVector2 velocity, double propellantMass = 1769010) : base(craftDirectory, position, velocity, propellantMass, "Textures/itsShip.png") { 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.2, Height * 0.45); Engines[i] = new RaptorVac(i, this, offset); } // Raptor SL engines Engines[6] = new Raptor(6, this, new DVector2(-2, Height * 0.45)); Engines[7] = new Raptor(7, this, new DVector2(0, Height * 0.45)); Engines[8] = new Raptor(8, this, new DVector2(2, Height * 0.45)); }