actualCombat

package
v0.0.0-...-05962f3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button struct {
	Command Command
}

func (*Button) Press

func (b *Button) Press()

type Command

type Command interface {
	Execute()
}

type Device

type Device interface {
	On()
	Off()
}

type Light

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

func (*Light) Off

func (t *Light) Off()

func (*Light) On

func (t *Light) On()

type OffCommand

type OffCommand struct {
	Device Device
}

func (*OffCommand) Execute

func (c *OffCommand) Execute()

type OnCommand

type OnCommand struct {
	Device Device
}

func (*OnCommand) Execute

func (c *OnCommand) Execute()

Jump to

Keyboard shortcuts

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