corpse

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: 8 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.Interface, 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