player

package
v0.0.0-...-40e17fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

type Player struct {
	// contains filtered or unexported fields
}

func New

func New() *Player

func (*Player) AddMoney

func (p *Player) AddMoney(money uint)

func (*Player) AddStructure

func (p *Player) AddStructure(s *structure.Structure)

func (*Player) Capitol

func (p *Player) Capitol() (bool, *structure.Structure)

func (*Player) MaxPopulation

func (p *Player) MaxPopulation() int

func (*Player) Money

func (p *Player) Money() int

func (*Player) MoneyLabel

func (p *Player) MoneyLabel() string

func (*Player) Population

func (p *Player) Population() int

func (*Player) PopulationLabel

func (p *Player) PopulationLabel() string

func (*Player) RemoveMoney

func (p *Player) RemoveMoney(money uint)

func (*Player) SetPopulation

func (p *Player) SetPopulation(pop, maxPop, workersNeeded int)

func (*Player) Ships

func (p *Player) Ships() map[uint]*ship.Ship

func (*Player) Structures

func (p *Player) Structures() []*structure.Structure

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL