score

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CQZoneMulti     = "CQ"
	ITUZoneMulti    = "ITU"
	DXCCEntityMulti = "DXCC"
	XchangeMulti    = "XCHANGE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration added in v0.3.0

type Configuration interface {
	CountPerBand() bool
	SameCountryPoints() int
	SameContinentPoints() int
	OtherPoints() int
	SpecificCountryPoints() int
	SpecificCountryPrefixes() []string
	Multis() []string
	XchangeMultiPattern() string
}

type Counter

type Counter struct {
	core.Score
	// contains filtered or unexported fields
}

func NewCounter

func NewCounter(configuration Configuration) *Counter

func (*Counter) Add

func (c *Counter) Add(qso core.QSO)

func (*Counter) Clear

func (c *Counter) Clear()

func (*Counter) Hide

func (c *Counter) Hide()

func (*Counter) Notify

func (c *Counter) Notify(listener interface{})

func (*Counter) SetMyPrefix

func (c *Counter) SetMyPrefix(myPrefix dxcc.Prefix)

func (*Counter) SetView

func (c *Counter) SetView(view View)

func (*Counter) Show

func (c *Counter) Show()

func (*Counter) Update

func (c *Counter) Update(oldQSO, newQSO core.QSO)

type ScoreUpdatedListener

type ScoreUpdatedListener interface {
	ScoreUpdated(core.Score)
}

type ScoreUpdatedListenerFunc

type ScoreUpdatedListenerFunc func(core.Score)

func (ScoreUpdatedListenerFunc) ScoreUpdated

func (f ScoreUpdatedListenerFunc) ScoreUpdated(Score core.Score)

type View

type View interface {
	Show()
	Hide()

	ShowScore(score core.Score)
}

Jump to

Keyboard shortcuts

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