Documentation
¶
Index ¶
- Constants
- type BreakdownStats
- type Cast
- type Death
- type DisplaySection
- type Event
- type Fight
- type FightTracker
- func (t *FightTracker) AddCast(cast Cast)
- func (t *FightTracker) AddDamage(event Event)
- func (t *FightTracker) AddDamageWithIdle(event Event, idleTimeout time.Duration)
- func (t *FightTracker) AddDeath(death Death)
- func (t *FightTracker) DisplayFight() (*Fight, bool)
- func (t *FightTracker) DisplaySections() []DisplaySection
- func (t *FightTracker) EndIdle(now time.Time, idleTimeout time.Duration) bool
- func (t *FightTracker) EndIdleAtLogTime(logTime time.Time, idleTimeout time.Duration) bool
- func (t *FightTracker) ForgetEnemies(timestamp time.Time)
- type Meter
- type PlayerStats
Constants ¶
View Source
const DefaultFightHistory = 0
View Source
const DefaultIdleTimeout = 15 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BreakdownStats ¶
type BreakdownStats struct {
Name string
Damage int
Hits int
Crits int
MinHit int
MaxHit int
FirstSeen time.Time
LastSeen time.Time
Children map[string]*BreakdownStats
}
func (BreakdownStats) ActiveDuration ¶
func (s BreakdownStats) ActiveDuration() time.Duration
func (BreakdownStats) DPS ¶
func (s BreakdownStats) DPS() float64
func (BreakdownStats) SortedChildren ¶
func (s BreakdownStats) SortedChildren() []BreakdownStats
type DisplaySection ¶
type Fight ¶
type Fight struct {
Mob string
Meter *Meter
Death Death
EndReason string
LastYouIntentionalOrder uint64
}
func (*Fight) ActiveDuration ¶
type FightTracker ¶
type FightTracker struct {
// contains filtered or unexported fields
}
func NewFightTracker ¶
func NewFightTracker() *FightTracker
func NewFightTrackerWithHistory ¶
func NewFightTrackerWithHistory(historyLimit int) *FightTracker
func (*FightTracker) AddCast ¶
func (t *FightTracker) AddCast(cast Cast)
func (*FightTracker) AddDamage ¶
func (t *FightTracker) AddDamage(event Event)
func (*FightTracker) AddDamageWithIdle ¶
func (t *FightTracker) AddDamageWithIdle(event Event, idleTimeout time.Duration)
func (*FightTracker) AddDeath ¶
func (t *FightTracker) AddDeath(death Death)
func (*FightTracker) DisplayFight ¶
func (t *FightTracker) DisplayFight() (*Fight, bool)
func (*FightTracker) DisplaySections ¶
func (t *FightTracker) DisplaySections() []DisplaySection
func (*FightTracker) EndIdleAtLogTime ¶
func (*FightTracker) ForgetEnemies ¶
func (t *FightTracker) ForgetEnemies(timestamp time.Time)
type Meter ¶
type Meter struct {
// contains filtered or unexported fields
}
func (*Meter) Players ¶
func (m *Meter) Players() []PlayerStats
type PlayerStats ¶
type PlayerStats struct {
Name string
Damage int
Hits int
Crits int
MinHit int
MaxHit int
FirstSeen time.Time
LastSeen time.Time
Breakdown map[string]*BreakdownStats
EngagedAt time.Time
// LastIntentionalDamage records the latest direct, non-incidental damage
// initiated by this combatant. Passive shields, DoTs, ripostes, and other
// incidental hits do not advance it.
LastIntentionalDamage time.Time
}
func (PlayerStats) ActiveDuration ¶
func (s PlayerStats) ActiveDuration() time.Duration
func (PlayerStats) DPS ¶
func (s PlayerStats) DPS() float64
func (PlayerStats) DPSForDuration ¶
func (s PlayerStats) DPSForDuration(duration time.Duration) float64
func (PlayerStats) DamageBreakdown ¶
func (s PlayerStats) DamageBreakdown() []BreakdownStats
func (PlayerStats) EngagedDPS ¶
func (s PlayerStats) EngagedDPS(ended time.Time) (float64, bool)
Click to show internal directories.
Click to hide internal directories.