Documentation
¶
Index ¶
- Constants
- func GetStructureData() *[StructureDataLength]StructureData
- type Consumption
- type Ingredient
- type Production
- type Storage
- type Structure
- func (s *Structure) ActiveWorkers() int
- func (s *Structure) AssignWorkers(workers int)
- func (s *Structure) AwaitDelivery(resource int)
- func (s *Structure) CanProduce() bool
- func (s *Structure) Class() int
- func (s *Structure) CollectIncome() int
- func (s *Structure) Consume(count uint) (bool, int)
- func (s *Structure) Deprioritize()
- func (s *Structure) Draw(image *ebiten.Image)
- func (s *Structure) GenerateIncome()
- func (s *Structure) HasShips() bool
- func (s *Structure) Highlight()
- func (s *Structure) Income() int
- func (s *Structure) IsHighlighted() bool
- func (s *Structure) IsPaused() bool
- func (s *Structure) IsPrioritized() bool
- func (s *Structure) LaborCost() int
- func (s *Structure) LaunchShip(resource int)
- func (s *Structure) MouseButton(x, y int) bool
- func (s *Structure) Name() string
- func (s *Structure) Pause()
- func (s *Structure) Planet() *planet.Planet
- func (s *Structure) Prioritize()
- func (s *Structure) Produce(count uint) bool
- func (s *Structure) Produces() int
- func (s *Structure) ReceiveCargo(resource int)
- func (s *Structure) ResourceBarCallback(resource int) func() uint8
- func (s *Structure) ResourceLabelCallback(displayName string, resource int) func() string
- func (s *Structure) ReturnShip()
- func (s *Structure) Storage() map[int]*Storage
- func (s *Structure) StructureType() int
- func (s *Structure) Unhighlight()
- func (s *Structure) Unpause()
- func (s *Structure) Upgrade(st int, sd *StructureData)
- func (s *Structure) UpgradeTo() int
- func (s *Structure) Upgradeable() bool
- func (s *Structure) WorkerCapacity() int
- func (s *Structure) WorkerCost() int
- func (s *Structure) WorkersLabel() string
- type StructureData
- type Upgrade
Constants ¶
View Source
const ( StructureDataLength = 13 StructuresJSONFile = "structures.json" )
View Source
const ( HQ int = iota Outpost Water Habitat Settlement Mine Smelter Factory Silica ChipFoundry Assembly Colony Capitol )
View Source
const ( Tax int = iota Residential Extractor Processor )
Variables ¶
This section is empty.
Functions ¶
func GetStructureData ¶
func GetStructureData() *[StructureDataLength]StructureData
Types ¶
type Consumption ¶
type Ingredient ¶
type Production ¶
type Production struct { Resource int Rate uint8 Requires []Ingredient }
type Structure ¶
func (*Structure) ActiveWorkers ¶
func (*Structure) AssignWorkers ¶
func (*Structure) AwaitDelivery ¶
func (*Structure) CanProduce ¶
func (*Structure) CollectIncome ¶
func (*Structure) Deprioritize ¶
func (s *Structure) Deprioritize()
func (*Structure) GenerateIncome ¶
func (s *Structure) GenerateIncome()
func (*Structure) IsHighlighted ¶
func (*Structure) IsPrioritized ¶
func (*Structure) LaunchShip ¶
func (*Structure) MouseButton ¶
func (*Structure) Prioritize ¶
func (s *Structure) Prioritize()
func (*Structure) ReceiveCargo ¶
func (*Structure) ResourceBarCallback ¶
func (*Structure) ResourceLabelCallback ¶
func (*Structure) ReturnShip ¶
func (s *Structure) ReturnShip()
func (*Structure) StructureType ¶
func (*Structure) Unhighlight ¶
func (s *Structure) Unhighlight()
func (*Structure) Upgrade ¶
func (s *Structure) Upgrade(st int, sd *StructureData)
func (*Structure) Upgradeable ¶
func (*Structure) WorkerCapacity ¶
func (*Structure) WorkerCost ¶
func (*Structure) WorkersLabel ¶
type StructureData ¶
Click to show internal directories.
Click to hide internal directories.