Documentation
¶
Index ¶
- type Critter
- func (c *Critter) AnimationType() string
- func (c *Critter) Colors() []string
- func (c *Critter) Examine() (string, [][][2]string)
- func (c *Critter) Load(version uint, data interface{}, attached []world.ObjectLike)
- func (c *Critter) MaxHealth() *big.Int
- func (c *Critter) Name() string
- func (c *Critter) NotifyPosition(old, new *world.Tile)
- func (c *Critter) Save() (uint, interface{}, []world.ObjectLike)
- func (c *Critter) Sprite() string
- func (c *Critter) SpritePos() (uint, uint)
- func (c *Critter) Think()
- func (c *Critter) Type() CritterType
- type CritterType
- type Slime
- func (s *Slime) Colors() []string
- func (s *Slime) Examine() (string, [][][2]string)
- func (s *Slime) Load(version uint, data interface{}, attached []world.ObjectLike)
- func (s *Slime) Name() string
- func (s *Slime) Save() (uint, interface{}, []world.ObjectLike)
- func (s *Slime) Sprite() string
- func (s *Slime) Think()
- func (s *Slime) Type() CritterType
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 (*Critter) Load ¶
func (c *Critter) Load(version uint, data interface{}, attached []world.ObjectLike)
func (*Critter) NotifyPosition ¶
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) Load ¶
func (s *Slime) Load(version uint, data interface{}, attached []world.ObjectLike)
func (*Slime) Type ¶
func (s *Slime) Type() CritterType
Click to show internal directories.
Click to hide internal directories.