heal

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: 5 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
	HealedByEpoch map[int]*EpochStat
}

func NewCategory

func NewCategory(displayName string) *Category

func (*Category) EpochOf

func (c *Category) EpochOf(epoch int) *EpochStat

func (*Category) TotalStats

func (c *Category) TotalStats() (count int, healed int64)

type Contribution

type Contribution struct {
	Source      string
	TotalHealed int64
	Categorized map[string]*Category
}

func NewContribution

func NewContribution(source string) *Contribution

func (*Contribution) CategoryOf

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

type EpochStat

type EpochStat struct {
	Count       int
	TotalHealed int64
}

func NewEpochStat

func NewEpochStat() *EpochStat

type Report

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

func NewReport

func NewReport(belligerent string) *Report

func (*Report) Aggregate

func (r *Report) Aggregate() *aggregateReport

Aggregate combines the contributions of wards 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