Documentation ¶
Index ¶
- type HealthCtrl
- func (h *HealthCtrl) AddDamageReduction(f func() (float64, bool))
- func (h *HealthCtrl) AddIncHealBonus(f func(healedCharIndex int) float64)
- func (h *HealthCtrl) HealActive(caller int, hp float64)
- func (h *HealthCtrl) HealAll(caller int, hp float64)
- func (h *HealthCtrl) HealAllPercent(caller int, percent float64)
- func (h *HealthCtrl) HealIndex(caller int, index int, hp float64)
- func (h *HealthCtrl) HurtChar(dmg float64, ele core.EleType)
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)
Click to show internal directories.
Click to hide internal directories.