Documentation ¶
Overview ¶
Package enemy implements an enemey target
Index ¶
- Constants
- 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 (e *Enemy) Attack(atk *combat.AttackEvent, evt glog.Event) (float64, bool)
- 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) GroupTagDamageMult(tag combat.ICDTag, grp combat.ICDGroup, char int) float64
- func (e *Enemy) QueueEnemyTask(f func(), delay int)
- func (t *Enemy) ResetDamageCounterAfterDelay(tag combat.ICDTag, grp combat.ICDGroup, char int)
- func (t *Enemy) ResetTagCounterAfterDelay(tag combat.ICDTag, grp combat.ICDGroup, char 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
- func (t *Enemy) WillApplyEle(tag combat.ICDTag, grp combat.ICDGroup, char int) bool
- type EnemyProfile
- type ResistMod
- type Status
Constants ¶
View Source
const MaxTeamSize = 4
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) GroupTagDamageMult ¶
func (*Enemy) QueueEnemyTask ¶
func (*Enemy) ResetDamageCounterAfterDelay ¶
func (*Enemy) ResetTagCounterAfterDelay ¶
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.