Versions in this module Expand all Collapse all v0 v0.1.4 Nov 7, 2022 v0.1.3 Nov 7, 2022 v0.1.2 Nov 13, 2022 v0.1.0 Nov 7, 2022 Changes in this version + type Galaxy struct + Size int + Systems []planetarySystem + func (g *Galaxy) PrintSystem(plsy planetarySystem, compressed bool) + func (g *Galaxy) SprintSystem(plsy planetarySystem, compressed bool) string + type Game struct + AlienItems uint16 + Commodities []TradeGood + Galaxy Galaxy + GameCommands GameCommands + Player player + func InitGame(useNativeRand bool) Game + func (g *Game) BuyCommodity(commodity string, amount int) (bought int, err error) + func (g *Game) BuyFuel(amount int16) error + func (g *Game) ExecuteCommand(cmd string) (status string, output string) + func (g *Game) GetPlanetaryData(systemName string) PlanetarySystem + func (g *Game) GetSystemData(systemName string) planetarySystem + func (g *Game) HyperSpaceJump() + func (g *Game) Jump(planetName string) error + func (g *Game) Matchsys(platnetName string) int + func (g *Game) PlayerCurrentPlanetName() string + func (g *Game) PrintLocal() + func (g *Game) PrintState() + func (g *Game) ReachableSystems() []NavInfo + func (g *Game) SellCommodity(commodity string, amount int) (sold int, err error) + func (g *Game) SprintState() string + type GameCommands map[string]func(game *Game, args []string) (stauts string, output string) + type Market struct + Price []uint16 + Quantity []uint16 + UnitNames []string + type NavInfo struct + Distance int + ReachableWithCurrentFuel bool + ReachableWithMaxFuel bool + System planetarySystem + type PlanetarySystem struct + Description string + Economy uint16 + EconomyName string + GovName string + Govtype uint16 + Name string + Population uint16 + Productivity uint16 + Radius uint16 + Techlev uint16 + X uint16 + Y uint16 + type TradeGood struct + Abbrievation string + Baseprice uint16 + Basequant uint16 + Gradient int16 + Maskbyte uint16 + Name string + Units uint v0.1.0-rc1 Nov 13, 2022 v0.1.0-homebrew-test Nov 7, 2022 v0.1.0-homebrew Nov 7, 2022