ship

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: 10 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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