combat

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctrl

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

func NewCtrl

func NewCtrl(c *core.Core) *Ctrl

func (*Ctrl) ApplyDamage

func (c *Ctrl) ApplyDamage(a *core.AttackEvent) float64

func (*Ctrl) QueueAttack

func (c *Ctrl) QueueAttack(a core.AttackInfo, p core.AttackPattern, snapshotDelay int, dmgDelay int, callbacks ...core.AttackCBFunc)

func (*Ctrl) QueueAttackEvent

func (c *Ctrl) QueueAttackEvent(ae *core.AttackEvent, dmgDelay int)

func (*Ctrl) QueueAttackWithSnap

func (c *Ctrl) QueueAttackWithSnap(a core.AttackInfo, s core.Snapshot, p core.AttackPattern, dmgDelay int, callbacks ...core.AttackCBFunc)

func (*Ctrl) TargetHasDefMod

func (c *Ctrl) TargetHasDefMod(key string, param int) bool

func (*Ctrl) TargetHasElement

func (c *Ctrl) TargetHasElement(ele core.EleType, param int) bool

func (*Ctrl) TargetHasResMod

func (c *Ctrl) TargetHasResMod(key string, param int) bool

Jump to

Keyboard shortcuts

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