Documentation ¶
Index ¶
- type Command
- type Snake
- func (s *Snake) Command(cmd Command) error
- func (s *Snake) GetID() world.Identifier
- func (s *Snake) GetLocation() engine.Location
- func (s *Snake) Hit(dot engine.Dot, force float64) (success bool, err error)
- func (s *Snake) MarshalJSON() ([]byte, error)
- func (s *Snake) Run(stop <-chan struct{}, logger logrus.FieldLogger) <-chan struct{}
- func (s *Snake) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Snake ¶
type Snake struct {
// contains filtered or unexported fields
}
Snake object ffjson: skip
func (*Snake) GetID ¶
func (s *Snake) GetID() world.Identifier
func (*Snake) GetLocation ¶
func (*Snake) MarshalJSON ¶
func (*Snake) Run ¶
func (s *Snake) Run(stop <-chan struct{}, logger logrus.FieldLogger) <-chan struct{}
Click to show internal directories.
Click to hide internal directories.