health

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCtrl

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

func NewCtrl

func NewCtrl(c *core.Core) *HealthCtrl

func (*HealthCtrl) AddDamageReduction

func (h *HealthCtrl) AddDamageReduction(f func() (float64, bool))

func (*HealthCtrl) AddIncHealBonus

func (h *HealthCtrl) AddIncHealBonus(f func(healedCharIndex int) float64)

func (*HealthCtrl) HealActive

func (h *HealthCtrl) HealActive(caller int, hp float64)

func (*HealthCtrl) HealAll

func (h *HealthCtrl) HealAll(caller int, hp float64)

func (*HealthCtrl) HealAllPercent

func (h *HealthCtrl) HealAllPercent(caller int, percent float64)

func (*HealthCtrl) HealIndex

func (h *HealthCtrl) HealIndex(caller int, index int, hp float64)

func (*HealthCtrl) HurtChar

func (h *HealthCtrl) HurtChar(dmg float64, ele core.EleType)

Jump to

Keyboard shortcuts

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