player

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

type Player struct {
	*target.Tmpl
}

func New

func New(index int, c *core.Core) *Player

func (*Player) AddDefMod

func (p *Player) AddDefMod(key string, val float64, dur int)

func (*Player) AddReactBonusMod

func (p *Player) AddReactBonusMod(mod core.ReactionBonusMod)

func (*Player) AddResMod

func (p *Player) AddResMod(key string, val core.ResistMod)

func (*Player) ApplySelfInfusion

func (p *Player) ApplySelfInfusion(ele core.EleType, dur core.Durability, f int)

func (*Player) Attack

func (p *Player) Attack(atk *core.AttackEvent, evt core.LogEvent) (float64, bool)

func (*Player) HP

func (p *Player) HP() float64

func (*Player) HasDefMod

func (p *Player) HasDefMod(key string) bool

func (*Player) HasResMod

func (p *Player) HasResMod(key string) bool

func (*Player) Kill

func (p *Player) Kill()

func (*Player) MaxHP

func (p *Player) MaxHP() float64

func (*Player) ReactBonus

func (p *Player) ReactBonus(atk core.AttackInfo) float64

func (*Player) RemoveDefMod

func (p *Player) RemoveDefMod(key string)

func (*Player) RemoveResMod

func (p *Player) RemoveResMod(key string)

func (*Player) Shape

func (p *Player) Shape() core.Shape

func (*Player) Type

func (p *Player) Type() core.TargettableType

Jump to

Keyboard shortcuts

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