corpse

package
v4.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2018 License: MIT Imports: 9 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 ffjson: skip

func NewCorpse

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

Corpse are created when a snake dies

func (*Corpse) Bite

func (c *Corpse) Bite(dot engine.Dot) (nv uint16, success bool, err error)

func (*Corpse) MarshalJSON

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

func (*Corpse) Run

func (c *Corpse) Run(stop <-chan struct{}, logger logrus.FieldLogger)

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