Documentation ¶ Index ¶ type Controls type Entity func New(space *cp.Space, id entity.ID, name string, conn net.Connection) *Entity func (s *Entity) Perceive(perception []byte) func (s *Entity) Position() cp.Vector func (s *Entity) Snapshot(b *flatbuffers.Builder, known bool) flatbuffers.UOffsetT Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Controls ¶ type Controls struct { Movement movement.Controls Shooting shooting.Controls } type Entity ¶ type Entity struct { ID entity.ID Conn net.Connection Name string Controls Controls Physics *cp.Body Health *health.Component Shooting *shooting.Component } func New ¶ func New(space *cp.Space, id entity.ID, name string, conn net.Connection) *Entity func (*Entity) Perceive ¶ func (s *Entity) Perceive(perception []byte) func (*Entity) Position ¶ func (s *Entity) Position() cp.Vector func (*Entity) Snapshot ¶ func (s *Entity) Snapshot(b *flatbuffers.Builder, known bool) flatbuffers.UOffsetT Source Files ¶ View all Source files ship.go Click to show internal directories. Click to hide internal directories.