//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; }
//private SpriteSheet _spriteSheet; public BFR(string craftDirectory, DVector2 position, DVector2 velocity, double propellantMass = 2949500) : base(craftDirectory, position, velocity, 0, propellantMass, "Its/BFR.png") { StageOffset = new DVector2(0, 54); _gridFins = new[] { new TiGridFin(this, new DVector2(2.75, -28.8), true), new TiGridFin(this, new DVector2(-2.75, -28.8), false) }; Engines = new IEngine[31]; for (int i = 0; i < 31; i++) { double engineOffsetX = (i - 15.5) / 15.5; var offset = new DVector2(engineOffsetX * Width * 0.4, Height * 0.48); Engines[i] = new RaptorSL(i, this, offset); } //_spriteSheet = new SpriteSheet("Textures/Spacecraft/Its/booster.png", 4, 12); string texturePath = "Its/BFR.png"; string fullPath = Path.Combine("Textures/Spacecrafts", texturePath); this.Texture = new Bitmap(fullPath); }
//private SpriteSheet _spriteSheet; public StarshipMk1(string craftDirectory, DVector2 position, DVector2 velocity, double payloadMass = 0, double propellantMass = 1200000) : base(craftDirectory, position, velocity, payloadMass, propellantMass, null) { StageOffset = new DVector2(0, 0); Fins = new Fin[2]; Fins[0] = new Fin(this, new DVector2(0.0, -12.0), new DVector2(2.8, 10.2), 0.2, "Textures/Spacecrafts/ITS/FwdFlap.png", -1.4); Fins[1] = new Fin(this, new DVector2(0.0, 15.0), new DVector2(4.1, 14.1), 0.2, "Textures/Spacecrafts/ITS/Flap.png", 1.4); Engines = new IEngine[3]; for (int i = 0; i < 3; i++) { double engineOffsetX = (i - 1.0) / 4.0; var offset = new DVector2(engineOffsetX * Width * 0.2, Height * 0.4); Engines[i] = new RaptorSL(i, this, offset); } //_spriteSheet = new SpriteSheet("Textures/Spacecrafts/Its/scaledShip.png", 12, 12); string texturePath = "Its/StarshipMk1.png"; string fullPath = Path.Combine("Textures/Spacecrafts", texturePath); this.Texture = new Bitmap(fullPath); this.payloadMass = payloadMass; }