encounters

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDefaultPresetEncounter

func AddDefaultPresetEncounter()

func NewMovementAI

func NewMovementAI() core.AIFactory

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

func (ai *MovementAI) TimeToMove(distance float64, unit *core.Unit) time.Duration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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