Documentation ¶
Overview ¶
Package enemy implements an enemey target
Index ¶
- type DefMod
- type Enemy
- func (e *Enemy) AddDefMod(mod DefMod)
- func (e *Enemy) AddResistMod(mod ResistMod)
- func (e *Enemy) AddStatus(key string, dur int, hitlag bool)
- func (e *Enemy) ApplyHitlag(factor, dur float64)
- func (t *Enemy) DefAdj(ai *combat.AttackInfo, evt glog.Event) float64
- func (e *Enemy) DefModIsActive(key string) bool
- func (e *Enemy) DeleteDefMod(key string)
- func (e *Enemy) DeleteResistMod(key string)
- func (e *Enemy) DeleteStatus(key string)
- func (t *Enemy) HP() float64
- func (e *Enemy) HandleAttack(atk *combat.AttackEvent) float64
- func (t *Enemy) MaxHP() float64
- func (e *Enemy) QueueEnemyTask(f func(), delay int)
- func (e *Enemy) Resist(ai *combat.AttackInfo, evt glog.Event) float64
- func (e *Enemy) ResistModIsActive(key string) bool
- func (e *Enemy) StatusExpiry(key string) int
- func (e *Enemy) StatusIsActive(key string) bool
- func (e *Enemy) Tick()
- func (e *Enemy) Type() combat.TargettableType
- type EnemyProfile
- type ResistMod
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enemy ¶
type Enemy struct { *target.Target *reactable.Reactable Level int // contains filtered or unexported fields }
func (*Enemy) AddResistMod ¶
func (*Enemy) ApplyHitlag ¶
func (*Enemy) DefModIsActive ¶
func (*Enemy) DeleteDefMod ¶
func (*Enemy) DeleteResistMod ¶
func (*Enemy) DeleteStatus ¶
func (*Enemy) HandleAttack ¶ added in v1.3.0
func (e *Enemy) HandleAttack(atk *combat.AttackEvent) float64
func (*Enemy) QueueEnemyTask ¶
func (*Enemy) ResistModIsActive ¶
func (*Enemy) StatusExpiry ¶
func (*Enemy) StatusIsActive ¶
func (*Enemy) Type ¶
func (e *Enemy) Type() combat.TargettableType
type EnemyProfile ¶
type EnemyProfile struct { Level int `json:"level"` HP float64 `json:"-"` Resist map[attributes.Element]float64 `json:"-"` Pos core.Coord `json:"-"` ParticleDropThreshold float64 `json:"-"` // drop particle every x dmg dealt ParticleDropCount float64 `json:"-"` ParticleElement attributes.Element `json:"-"` }
func (*EnemyProfile) Clone ¶
func (e *EnemyProfile) Clone() EnemyProfile
Click to show internal directories.
Click to hide internal directories.