organs

package
v0.0.0-...-b0af349 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Head struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Head yes Head

func (*Head) Color

func (h *Head) Color() color.Color

Color get color of head

func (*Head) Destroy

func (h *Head) Destroy() (int, error)

Destroy head

func (*Head) ID

func (h *Head) ID() int

type Organ

type Organ interface {
	ID() int

	// Color get color of organ
	Color() color.Color

	//Destroy organ
	Destroy() (int, error)
}

Organ represent body organs

func MakeHead

func MakeHead(organColor color.Color) Organ

MakeHead ...

func MakeTongue

func MakeTongue(organColor color.Color) Organ

MakeTongue ...

type Tongue

type Tongue struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Tongue yes Tongue

func (*Tongue) Color

func (t *Tongue) Color() color.Color

Color get color of head

func (*Tongue) Destroy

func (t *Tongue) Destroy() (int, error)

Destroy head

func (*Tongue) ID

func (t *Tongue) ID() int

Jump to

Keyboard shortcuts

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