objects

package
v4.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alive

type Alive interface {
	// Hits object on dot dot with force force and returns success flag - true
	// if dot free and error err if error occurred
	Hit(dot engine.Dot, force float64) (success bool, err error)
}

Alive interface describes methods that must be implemented all alive objects

type Food

type Food interface {
	// Bites object on dot dot and returns nutritional value nv, success flag -
	// true if dot free and error err if error occurred
	Bite(dot engine.Dot) (nv uint16, success bool, err error)
}

Food interface describes methods that must be implemented all edible objects

type Object

type Object interface {
	// Breaks object on dot dot with force force, returns success flag true if dot
	// free and error err if error occurred
	Break(dot engine.Dot, force float64) (success bool, err error)
}

Object interface describes methods that must be implemented all not alive objects

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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