package calc import "galaxy/calc" // ShipBuildCost wraps `calc.ShipBuildCost` (`pkg/calc/planet.go`): the // per-turn production cost of one ship of empty mass shipMass on a planet // holding the given material stockpile at the given resources rating. func ShipBuildCost(shipMass, material, resources float64) float64 { return calc.ShipBuildCost(shipMass, material, resources) } // ProduceShipsInTurn wraps `calc.ProduceShipsInTurn` // (`pkg/calc/planet.go`): one turn of ship production. It returns the // whole ships completed this turn, the material left afterwards, the // production units spent on the next (incomplete) ship, and that ship's // progress fraction. The calculator's planet area renders ships-per-turn // and turns-per-ship from this single call so it agrees with the engine. func ProduceShipsInTurn( productionAvailable, material, resources, shipMass float64, ) (uint, float64, float64, float64) { return calc.ProduceShipsInTurn(productionAvailable, material, resources, shipMass) }