public SpaceShip(Engines engine, Fuel fuel, Cargo cargo) { this.name = engine.name + fuel.name + cargo.name; this.rep = engine.rep + fuel.rep + cargo.rep + nose; this.weight = engine.weight + fuel.weight + cargo.weight; this.speed = engine.speed; this.fuel = fuel.weight; this.fuelCapacity = fuel.capacity; this.cargoCapacity = cargo.capacity; }
public SpaceShip() { Engines engine = Engine1; Fuel fuel = Fuel1; Cargo cargo = Cargo1; }