perceiving

package
v0.0.0-...-9c16532 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Perceivable

type Perceivable interface {
	Snapshot(builder *flatbuffers.Builder, known bool) flatbuffers.UOffsetT
}

type PerceivableFunc

type PerceivableFunc func(builder *flatbuffers.Builder, known bool) flatbuffers.UOffsetT

func (PerceivableFunc) Snapshot

func (fn PerceivableFunc) Snapshot(builder *flatbuffers.Builder, known bool) flatbuffers.UOffsetT

type Perceiver

type Perceiver interface {
	Position() cp.Vector
	Perceive(perception []byte)
}

type System

type System struct {
	// contains filtered or unexported fields
}

func New

func New(space *cp.Space) *System

func (*System) AddPerceivable

func (s *System) AddPerceivable(id entity.ID, perceivable Perceivable)

func (*System) AddPerceiver

func (s *System) AddPerceiver(id entity.ID, perceiver Perceiver)

func (*System) Debug

func (s *System) Debug(w io.Writer)

func (*System) Remove

func (s *System) Remove(entity entity.ID)

func (*System) Update

func (s *System) Update(_ float64)

Jump to

Keyboard shortcuts

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