ship

package
v0.0.0-...-ac3a847 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Cargo int = iota
	Income
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Ship

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

func New

func New(origin, destination *structure.Structure, shipType int) *Ship

func (*Ship) Draw

func (s *Ship) Draw(targetImage *ebiten.Image)

func (*Ship) DrawCourse

func (s *Ship) DrawCourse(targetImage *ebiten.Image)

func (*Ship) LoadCargo

func (s *Ship) LoadCargo(resource int, cargoColor color.RGBA)

func (*Ship) Manifest

func (s *Ship) Manifest() (int, *structure.Structure, *structure.Structure)

func (*Ship) ShipType

func (s *Ship) ShipType() int

func (*Ship) Update

func (s *Ship) Update(count uint) bool

Jump to

Keyboard shortcuts

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