damage

package
v0.0.0-...-4ee4993 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	DisplayName string
	Success     int
	Failure     int
	TotalDamage int64
}

func NewCategory

func NewCategory(displayName string) *Category

type Contribution

type Contribution struct {
	Source      string
	TotalDamage int64
	Categorized map[string]*Category
	Deaths      map[int]struct{}
	Boosts      boosts.BoostSet
}

func NewContribution

func NewContribution(source string) *Contribution

func (*Contribution) CategoryOf

func (c *Contribution) CategoryOf(displayName string) *Category

func (*Contribution) Flags

func (c *Contribution) Flags() string

type Report

type Report struct {
	Target        string
	LastCharName  string
	Contributions map[string]*Contribution
	ActivitySet   algorithm.TimeIntervalSet
}

Report is the damage dealt/HPS report

func NewReport

func NewReport(target string) *Report

NewReport creates a new empty report with the specified target

func (*Report) Aggregate

func (r *Report) Aggregate() *aggregateReport

Aggregate combines the contributions of pets with those of their owners

func (*Report) ContributionOf

func (r *Report) ContributionOf(source string) *Contribution

ContributionOf returns a pointer to the contribution record for a specified source, adding such a record to the the report if none yet exists

func (*Report) Finalize

func (r *Report) Finalize(f *fight.Fight) fight.FightReport

func (*Report) Interesting

func (r *Report) Interesting() bool

func (*Report) Participants

func (r *Report) Participants(p map[string]struct{})

type ReportFactory

type ReportFactory struct{}

func (ReportFactory) Merge

func (r ReportFactory) Merge(reports []fight.FightReport) fight.FightReport

func (ReportFactory) NewEmpty

func (r ReportFactory) NewEmpty(target string) fight.FightReport

func (ReportFactory) Type

func (r ReportFactory) Type() string

Jump to

Keyboard shortcuts

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