system

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALPHABET = "ABCDEFGHJKLMNOPQRSTUVWXYZ"
)

Variables

View Source
var Background = &BackgroundData{}

Functions

This section is empty.

Types

type AIConn

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

func NewAIConn

func NewAIConn(ecs *ecs.ECS, boardSize int) (*AIConn, error)

func (*AIConn) HandleMove

func (rs *AIConn) HandleMove(w donburi.World, e *event.Move)

type AudioPlayer

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

func NewAudioPlayer

func NewAudioPlayer(assets fs.FS, context *audio.Context) *AudioPlayer

func (*AudioPlayer) HandleCapture

func (rs *AudioPlayer) HandleCapture(w donburi.World, e *event.Points)

func (*AudioPlayer) HandleMove

func (rs *AudioPlayer) HandleMove(w donburi.World, e *event.Move)

type BackgroundData

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

func (*BackgroundData) DrawBackground

func (b *BackgroundData) DrawBackground(ecs *ecs.ECS, screen *ebiten.Image)

type BoardRender

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

func NewRender

func NewRender(bounds *image.Rectangle) *BoardRender

func (*BoardRender) Draw

func (r *BoardRender) Draw(ecs *ecs.ECS, screen *ebiten.Image)

type InputManager

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

func NewInputManager

func NewInputManager(bounds *image.Rectangle) *InputManager

func (*InputManager) Update

func (im *InputManager) Update(ecs *ecs.ECS)
type MenuRender struct {
	Bounds *image.Rectangle

	GameUI *furex.View
	// contains filtered or unexported fields
}

func NewMenuRender

func NewMenuRender(bounds *image.Rectangle, setup func(r *MenuRender)) *MenuRender
func (r *MenuRender) Draw(ecs *ecs.ECS, screen *ebiten.Image)
func (r *MenuRender) Update(ecs *ecs.ECS)

type RuleSystem

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

func NewRuleSystem

func NewRuleSystem(ecs *ecs.ECS) *RuleSystem

func (*RuleSystem) HandleInput

func (rs *RuleSystem) HandleInput(w donburi.World, e *event.Interaction)

Jump to

Keyboard shortcuts

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