corpse

package
v3.0.3-rc+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2018 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Corpse

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

Snakes can eat corpses

func NewCorpse

func NewCorpse(world *world.World, location engine.Location) (*Corpse, error)

Corpse are created when a snake dies

func (*Corpse) MarshalJSON

func (c *Corpse) MarshalJSON() ([]byte, error)

func (*Corpse) NutritionalValue

func (c *Corpse) NutritionalValue(dot engine.Dot) uint16

func (*Corpse) Run

func (c *Corpse) Run(stop <-chan struct{})

func (*Corpse) String

func (c *Corpse) String() string

Jump to

Keyboard shortcuts

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