boards

package
v0.0.0-...-640e49b Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHumidityGrid

func MakeHumidityGrid(rockMask, rainMask [][]bool) [][]mgl32.Vec2

Types

type EnumBoard

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

func (*EnumBoard) Click

func (ba *EnumBoard) Click(btn ebiten.MouseButton)

func (*EnumBoard) Draw

func (ba *EnumBoard) Draw(screen *ebiten.Image)

func (*EnumBoard) GetState

func (ba *EnumBoard) GetState() [][]color.Color

func (*EnumBoard) Hover

func (ba *EnumBoard) Hover(x, y int)

func (*EnumBoard) Layout

func (ba *EnumBoard) Layout(outsideWidth int, outsideHeight int) (screenWidth int, screenHeight int)

func (*EnumBoard) Reset

func (ba *EnumBoard) Reset() error

func (*EnumBoard) Setup

func (ba *EnumBoard) Setup(init [][]color.Color)

func (*EnumBoard) Size

func (ba *EnumBoard) Size() (int, int)

func (*EnumBoard) Update

func (ba *EnumBoard) Update() error

type HumidityBoard

type HumidityBoard struct {
	Rocks, Rain [][]bool
	// contains filtered or unexported fields
}

PIN

func (*HumidityBoard) Click

func (ba *HumidityBoard) Click(btn ebiten.MouseButton)

func (*HumidityBoard) Draw

func (ba *HumidityBoard) Draw(screen *ebiten.Image)

func (*HumidityBoard) GetState

func (ba *HumidityBoard) GetState() [][]mgl32.Vec2

func (*HumidityBoard) Hover

func (ba *HumidityBoard) Hover(x, y int)

func (*HumidityBoard) Layout

func (ba *HumidityBoard) Layout(outsideWidth int, outsideHeight int) (screenWidth int, screenHeight int)

func (*HumidityBoard) Reset

func (ba *HumidityBoard) Reset() error

func (*HumidityBoard) Setup

func (ba *HumidityBoard) Setup(init [][]mgl32.Vec2)

func (*HumidityBoard) Size

func (ba *HumidityBoard) Size() (int, int)

func (*HumidityBoard) Update

func (ba *HumidityBoard) Update() error

PIN

Jump to

Keyboard shortcuts

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