shielding

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: 4 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 {
	// Health is the amount of health the shield has.
	Health *health.Component
	// Max is the maximum amount of health that the shield can have.
	Max float64
	// Min is the minimum amount of health needed to activate the shield (though once active, health can be drained to zero).
	Min float64
	// Recharge is the amount of health the shield regains per tick of inactivity.
	Recharge float64
	// Delay is the number of ticks between the the player signalling for the shield to activate and it activating.
	// The shield can be cancelled during the activation sequence but it will still consume health.
	Delay int
	// Decay is the minimum amount of health the shield loses per tick.
	Decay float64
}

type Controller

type Controller chan bool

type System

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

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