scene

package
v0.0.0-...-8caf293 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

type Box struct {
	Name            string
	Filled          bool
	Points          uint
	AvailablePoints uint
	Scoring         scoringFunc
	Selected        bool
}

func (*Box) Fill

func (b *Box) Fill()

type Game

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

func NewGame

func NewGame() *Game

func (*Game) Draw

func (g *Game) Draw(screen *ebiten.Image)

func (*Game) Layout

func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int)

func (*Game) RollAllDice

func (g *Game) RollAllDice()

func (*Game) RollSelectedDice

func (g *Game) RollSelectedDice()

func (*Game) Update

func (g *Game) Update() error

func (*Game) WindowSize

func (g *Game) WindowSize() (int, int)

type Table

type Table struct {
	Boxes                  []*Box
	ShowingAvailablePoints bool
}

func NewTable

func NewTable() *Table

func (*Table) Draw

func (t *Table) Draw(screen *ebiten.Image)

func (*Table) Full

func (t *Table) Full() bool

func (*Table) HideAvailablePoints

func (t *Table) HideAvailablePoints()

func (*Table) Ready

func (t *Table) Ready() bool

func (*Table) ShowAvailablePoints

func (t *Table) ShowAvailablePoints(dice []*entity.Die)

func (*Table) Update

func (t *Table) Update() error

func (*Table) UpperSectionBonus

func (t *Table) UpperSectionBonus() uint

Jump to

Keyboard shortcuts

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