entity

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Die

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

func MustNewDie

func MustNewDie(value uint) *Die

func NewRandomDie

func NewRandomDie() *Die

func (*Die) Roll

func (d *Die) Roll()

func (*Die) Value

func (d *Die) Value() uint

type DieIcon

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

func NewDieIcon

func NewDieIcon(die *Die, position component.Position) *DieIcon

func (*DieIcon) Die

func (d *DieIcon) Die() *Die

func (*DieIcon) Draw

func (d *DieIcon) Draw(screen *ebiten.Image)

func (*DieIcon) IsRolling

func (d *DieIcon) IsRolling() bool

func (*DieIcon) OnClick

func (d *DieIcon) OnClick()

func (*DieIcon) Position

func (d *DieIcon) Position() component.Position

func (*DieIcon) Roll

func (d *DieIcon) Roll()

func (*DieIcon) Selected

func (d *DieIcon) Selected() bool

func (*DieIcon) Sprite

func (d *DieIcon) Sprite() component.Sprite

func (*DieIcon) Update

func (d *DieIcon) Update()

type Panel

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

func NewPanel

func NewPanel(rect component.Rect, backgroundColor color.Color, drawers []component.Drawer) Panel

func (Panel) Draw

func (p Panel) Draw(screen *ebiten.Image)

Jump to

Keyboard shortcuts

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