critter

package
v0.0.0-...-7279c54 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2013 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Critter

type Critter struct {
	world.CombatObject
	// contains filtered or unexported fields
}

func (*Critter) AnimationType

func (c *Critter) AnimationType() string

func (*Critter) Colors

func (c *Critter) Colors() []string

func (*Critter) Examine

func (c *Critter) Examine() (string, [][][2]string)

func (*Critter) Load

func (c *Critter) Load(version uint, data interface{}, attached []world.ObjectLike)

func (*Critter) MaxHealth

func (c *Critter) MaxHealth() *big.Int

func (*Critter) Name

func (c *Critter) Name() string

func (*Critter) NotifyPosition

func (c *Critter) NotifyPosition(old, new *world.Tile)

func (*Critter) Save

func (c *Critter) Save() (uint, interface{}, []world.ObjectLike)

func (*Critter) Sprite

func (c *Critter) Sprite() string

func (*Critter) SpritePos

func (c *Critter) SpritePos() (uint, uint)

func (*Critter) Think

func (c *Critter) Think()

func (*Critter) Type

func (c *Critter) Type() CritterType

type CritterType

type CritterType uint64
const (
	SlimeMage CritterType = iota
	SlimeBrute
	StickySlime
	Cow
)

func (CritterType) Examine

func (t CritterType) Examine() string

func (CritterType) GenerateColors

func (t CritterType) GenerateColors() []string

func (CritterType) MaxHealth

func (t CritterType) MaxHealth() *big.Int

func (CritterType) Name

func (t CritterType) Name() string

func (CritterType) Sprite

func (t CritterType) Sprite() string

type Slime

type Slime struct {
	world.VisibleObject
	// contains filtered or unexported fields
}

Slime is a legacy object. When a Slime is in the word, it replaces itself with an equivelent Critter.

func (*Slime) Colors

func (s *Slime) Colors() []string

func (*Slime) Examine

func (s *Slime) Examine() (string, [][][2]string)

func (*Slime) Load

func (s *Slime) Load(version uint, data interface{}, attached []world.ObjectLike)

func (*Slime) Name

func (s *Slime) Name() string

func (*Slime) Save

func (s *Slime) Save() (uint, interface{}, []world.ObjectLike)

func (*Slime) Sprite

func (s *Slime) Sprite() string

func (*Slime) Think

func (s *Slime) Think()

func (*Slime) Type

func (s *Slime) Type() CritterType

Jump to

Keyboard shortcuts

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