shooting

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	Cooldown uint

	BulletForce    float64
	BulletDamage   float64
	BulletLifetime uint
	// contains filtered or unexported fields
}

func (Component) Armed

func (c Component) Armed() bool

type Controller

type Controller chan Controls

type Controls

type Controls struct {
	Shooting bool
}

type System

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

func New

func New(manager *entity.Manager, space *cp.Space) *System

func (*System) Add

func (s *System) Add(id entity.ID, component *Component, controller Controller, body *cp.Body)

func (*System) Remove

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

func (*System) Update

func (s *System) Update(delta float64)

Jump to

Keyboard shortcuts

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