Documentation ¶
Index ¶
- Constants
- func GenerateCargoLots(tradeInfo *TradeParams) ([]entities.FreightLot, error)
- func GenerateCargoName(cargoType string) string
- func GenerateCargoTons(cargoType string) int
- func GenerateName(nameType int) string
- func GenerateNewPlanet(name, sector, hex string, config *GeneratePlanetConfig) (*entities.Planet, error)
- func GeneratePassengerAspect() string
- func GeneratePassengerTrade(tradeParams *TradeParams) ([]entities.PassengerTrade, error)
- type Chain
- type GeneratePlanetConfig
- type TradeParams
Constants ¶
View Source
const ( MALE int = iota FEMALE EITHER )
Variables ¶
This section is empty.
Functions ¶
func GenerateCargoLots ¶
func GenerateCargoLots(tradeInfo *TradeParams) ([]entities.FreightLot, error)
func GenerateCargoName ¶
func GenerateCargoTons ¶
func GenerateName ¶
func GenerateNewPlanet ¶
func GenerateNewPlanet(name, sector, hex string, config *GeneratePlanetConfig) (*entities.Planet, error)
func GeneratePassengerAspect ¶
func GeneratePassengerAspect() string
func GeneratePassengerTrade ¶
func GeneratePassengerTrade(tradeParams *TradeParams) ([]entities.PassengerTrade, error)
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
func NewChainFromFile ¶
func (*Chain) Build ¶
func (c *Chain) Build()
Build takes a slice of strings and builds the Markov Chain with it.
func (*Chain) GenerateName ¶
type GeneratePlanetConfig ¶
type TradeParams ¶
type TradeParams struct { StartPopulation string StartStarport string StartTechLevel string StartAmberZone bool StartRedZone bool EndPopulation string EndStarport string EndTechLevel string EndAmberZone bool EndRedZone bool BrokerEffect int StewardSkill int Jumps int PassengerTrades []entities.PassengerTrade CargoLots []entities.FreightLot SpeculativeTrades []entities.SpeculativeTrade }
func NewTradeParams ¶
func NewTradeParams() *TradeParams
Click to show internal directories.
Click to hide internal directories.