Documentation
¶
Index ¶
- func AddDefaultPresetEncounter()
- func NewMovementAI() core.AIFactory
- type DefaultTankAI
- type DefaultTankAIConfig
- type DynamicAddsAI
- func (ai *DynamicAddsAI) DiesAt(_ *core.Simulation) time.Duration
- func (ai *DynamicAddsAI) ExecuteCustomRotation(sim *core.Simulation)
- func (ai *DynamicAddsAI) Initialize(target *core.Target, config *proto.Target)
- func (ai *DynamicAddsAI) NextActiveAt(_ *core.Simulation) time.Duration
- func (ai *DynamicAddsAI) Reset(sim *core.Simulation)
- type MovementAI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDefaultPresetEncounter ¶
func AddDefaultPresetEncounter()
func NewMovementAI ¶
Types ¶
type DefaultTankAI ¶
type DefaultTankAI struct {
Target *core.Target
BossUnit *core.Unit
MainTank *core.Unit
Config DefaultTankAIConfig
Cleave *core.Spell
MagicSpell *core.Spell
}
func (*DefaultTankAI) ExecuteCustomRotation ¶
func (ai *DefaultTankAI) ExecuteCustomRotation(sim *core.Simulation)
func (*DefaultTankAI) Initialize ¶
func (ai *DefaultTankAI) Initialize(target *core.Target, config *proto.Target)
func (*DefaultTankAI) Reset ¶
func (ai *DefaultTankAI) Reset(sim *core.Simulation)
func (*DefaultTankAI) TryCleave ¶
func (ai *DefaultTankAI) TryCleave(sim *core.Simulation, mhSwingSpell *core.Spell) *core.Spell
type DefaultTankAIConfig ¶
type DefaultTankAIConfig struct {
HasExtraAttacks bool
ExtraAttackCount int32
ExtraAttackICD time.Duration
ExtraAttackProcChance float64
HasCleave bool
CleaveICD time.Duration
CleaveDamageMult float64
HasMagicSpell bool
MagicSpellCastTime time.Duration
MagicSpellICD time.Duration
MagicSpellMinDamage float64
MagicSpellMaxDamage float64
MagicSpellSchool int32
}
type DynamicAddsAI ¶
type DynamicAddsAI struct {
Target *core.Target
AddTargets []*core.Target // Every target after the first; the boss spawns and despawns them.
// contains filtered or unexported fields
}
func (*DynamicAddsAI) DiesAt ¶
func (ai *DynamicAddsAI) DiesAt(_ *core.Simulation) time.Duration
func (*DynamicAddsAI) ExecuteCustomRotation ¶
func (ai *DynamicAddsAI) ExecuteCustomRotation(sim *core.Simulation)
func (*DynamicAddsAI) Initialize ¶
func (ai *DynamicAddsAI) Initialize(target *core.Target, config *proto.Target)
func (*DynamicAddsAI) NextActiveAt ¶
func (ai *DynamicAddsAI) NextActiveAt(_ *core.Simulation) time.Duration
func (*DynamicAddsAI) Reset ¶
func (ai *DynamicAddsAI) Reset(sim *core.Simulation)
type MovementAI ¶
type MovementAI struct {
Target *core.Target
NextMoveTime time.Duration
MoveInterval time.Duration // How often moves happen
ReactionTime time.Duration // Time available to react before area should be cleared
MoveYards float64 // Duration of the move
}
func (*MovementAI) ExecuteCustomRotation ¶
func (ai *MovementAI) ExecuteCustomRotation(sim *core.Simulation)
func (*MovementAI) Initialize ¶
func (ai *MovementAI) Initialize(target *core.Target, config *proto.Target)
func (*MovementAI) Reset ¶
func (ai *MovementAI) Reset(sim *core.Simulation)
func (*MovementAI) TimeToMove ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.