target

package
v0.5.19 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 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 Tmpl

type Tmpl struct {
	Core *core.Core
	*reactable.Reactable
	TargetType  core.TargettableType
	TargetIndex int
	HPCurrent   float64
	HPMax       float64
	Hitbox      core.Circle
	Res         map[core.EleType]float64
	Level       int
	Tags        map[string]int

	//mods
	ResMod []core.ResistMod
	DefMod []core.DefMod
	// contains filtered or unexported fields
}

func (*Tmpl) AddDefMod

func (t *Tmpl) AddDefMod(key string, val float64, dur int)

func (*Tmpl) AddResMod

func (t *Tmpl) AddResMod(key string, mod core.ResistMod)

func (*Tmpl) AddTask

func (t *Tmpl) AddTask(fun func(), name string, delay int)

func (*Tmpl) Attack

func (t *Tmpl) Attack(atk *core.AttackEvent, evt core.LogEvent) (float64, bool)

func (*Tmpl) DefAdj

func (t *Tmpl) DefAdj(ai *core.AttackInfo, evt core.LogEvent) float64

func (*Tmpl) GetTag

func (t *Tmpl) GetTag(key string) int

func (*Tmpl) GroupTagDamageMult

func (t *Tmpl) GroupTagDamageMult(tag core.ICDTag, grp core.ICDGroup, char int) float64

func (*Tmpl) HP

func (t *Tmpl) HP() float64

func (*Tmpl) HasDefMod

func (t *Tmpl) HasDefMod(key string) bool

func (*Tmpl) HasResMod

func (t *Tmpl) HasResMod(key string) bool

func (*Tmpl) Index

func (t *Tmpl) Index() int

func (*Tmpl) Init

func (t *Tmpl) Init(x, y, size float64)

func (*Tmpl) Kill

func (t *Tmpl) Kill()

func (*Tmpl) MaxHP

func (t *Tmpl) MaxHP() float64

func (*Tmpl) RemoveDefMod

func (t *Tmpl) RemoveDefMod(key string)

func (*Tmpl) RemoveResMod

func (t *Tmpl) RemoveResMod(key string)

func (*Tmpl) RemoveTag

func (t *Tmpl) RemoveTag(key string)

func (*Tmpl) ResetDamageCounterAfterDelay

func (t *Tmpl) ResetDamageCounterAfterDelay(tag core.ICDTag, grp core.ICDGroup, char int)

func (*Tmpl) ResetTagCounterAfterDelay

func (t *Tmpl) ResetTagCounterAfterDelay(tag core.ICDTag, grp core.ICDGroup, char int)

func (*Tmpl) Resist

func (t *Tmpl) Resist(ai *core.AttackInfo, evt core.LogEvent) float64

func (*Tmpl) SetIndex

func (t *Tmpl) SetIndex(ind int)

func (*Tmpl) SetTag

func (t *Tmpl) SetTag(key string, val int)

func (*Tmpl) Shape

func (t *Tmpl) Shape() core.Shape

func (*Tmpl) Type

func (t *Tmpl) Type() core.TargettableType

func (*Tmpl) WillApplyEle

func (t *Tmpl) WillApplyEle(tag core.ICDTag, grp core.ICDGroup, char int) bool

Jump to

Keyboard shortcuts

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