control

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
}

type Controllable

type Controllable interface {
	WatchKeys() []ebiten.Key
	Control(deltaSec float64, inputMgr input.Manager)
}

Controllable is the component used in the control system.

type Subject

type Subject interface {
	ControlType() string

	Control(cmds []interface{})
}

type System

type System interface {
	Add(id string, x any)
	Remove(id string)
	Clear()

	Control(deltaSec float64)
}

func NewSystem

func NewSystem() System

Directories

Path Synopsis
Package mock_control is a generated GoMock package.
Package mock_control is a generated GoMock package.

Jump to

Keyboard shortcuts

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