tanking

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contribution

type Contribution struct {
	Target      string
	TotalDamage int64
	Hits        int
}

func NewContribution

func NewContribution(target string) *Contribution

type Report

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

func NewReport

func NewReport(source string) *Report

func (*Report) ContributionOf

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

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{})

func (*Report) SortedContributors

func (r *Report) SortedContributors() []*Contribution

func (*Report) TotalDamage

func (r *Report) TotalDamage() int64

type ReportFactory

type ReportFactory struct{}

func (ReportFactory) Merge

func (rf ReportFactory) Merge(reportsIf []fight.FightReport) fight.FightReport

func (ReportFactory) NewEmpty

func (rf ReportFactory) NewEmpty(source string) fight.FightReport

func (ReportFactory) Type

func (rf ReportFactory) Type() string

Jump to

Keyboard shortcuts

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