planet

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Planet

type Planet struct {
	Bounds image.Rectangle
	// contains filtered or unexported fields
}

func New

func New(x, y int, resources map[int]uint8) *Planet

func (*Planet) Center

func (p *Planet) Center() (int, int)

func (*Planet) Draw

func (p *Planet) Draw(image *ebiten.Image)

func (*Planet) Highlight

func (p *Planet) Highlight()

func (*Planet) Image

func (p *Planet) Image() *ebiten.Image

func (*Planet) MouseButton

func (p *Planet) MouseButton(x, y int) bool

func (*Planet) Name

func (p *Planet) Name() string

func (*Planet) ReplaceWithStructure

func (p *Planet) ReplaceWithStructure()

func (*Planet) Resources

func (p *Planet) Resources() map[int]uint8

func (*Planet) Unhighlight

func (p *Planet) Unhighlight()

Jump to

Keyboard shortcuts

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