machine

package
v0.0.0-...-d0275cf Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Machine

type Machine interface {
	Tick()
	Pos() (int, int)
	Sprite() string
}

type Miner

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

func NewMiner

func NewMiner(x, y int) *Miner

func (*Miner) Extract

func (m *Miner) Extract() int

func (*Miner) Insert

func (m *Miner) Insert(item int) bool

func (*Miner) Pos

func (m *Miner) Pos() (int, int)

func (*Miner) Sprite

func (m *Miner) Sprite() string

func (*Miner) Tick

func (m *Miner) Tick()

Jump to

Keyboard shortcuts

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