Documentation
¶
Index ¶
- func GetHeader(clock *widgets.Paragraph) []interface{}
- func GetTimePassedSince(createdAt time.Time, withSeconds bool) string
- type AttackerSuccessWindow
- type BestAttackersWindow
- type BestDefendersWindow
- type BestPlayersWindow
- type ClockWindow
- type GaugeComponent
- type IRefreshable
- type LogWindow
- type UptimeTrackerWindow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttackerSuccessWindow ¶
type AttackerSuccessWindow struct { GaugeComponent // contains filtered or unexported fields }
Tracks the overall success chance of the attacker team
func NewAttackerSuccessWindow ¶
func NewAttackerSuccessWindow(combatService combat.IService) *AttackerSuccessWindow
Constructor for an UptimeTrackerWindow
func (*AttackerSuccessWindow) GetWidget ¶
func (asw *AttackerSuccessWindow) GetWidget() *widgets.Gauge
func (*AttackerSuccessWindow) Refresh ¶
func (asw *AttackerSuccessWindow) Refresh()
type BestAttackersWindow ¶
type BestAttackersWindow struct { BestPlayersWindow // contains filtered or unexported fields }
Tracks the top 5 attackers
func NewBestAttackersWindow ¶
func NewBestAttackersWindow(playerService player.IService) *BestAttackersWindow
Constructor for a new best attackers window
func (*BestAttackersWindow) GetWidget ¶
func (baw *BestAttackersWindow) GetWidget() *widgets.List
func (*BestAttackersWindow) Refresh ¶
func (baw *BestAttackersWindow) Refresh()
type BestDefendersWindow ¶
type BestDefendersWindow struct { BestPlayersWindow // contains filtered or unexported fields }
Tracks the top 5 defenders
func NewBestDefendersWindow ¶
func NewBestDefendersWindow(playerService player.IService) *BestDefendersWindow
Constructor for a new best attackers window
func (*BestDefendersWindow) GetWidget ¶
func (bdw *BestDefendersWindow) GetWidget() *widgets.List
func (*BestDefendersWindow) Refresh ¶
func (bdw *BestDefendersWindow) Refresh()
type BestPlayersWindow ¶
Generic type for the best player tracking
type ClockWindow ¶
type ClockWindow struct {
// contains filtered or unexported fields
}
Describes a clock window widget
func NewClockWindow ¶
func NewClockWindow(createdAt time.Time) *ClockWindow
Constructor for ClockWindow
func (*ClockWindow) GetWidget ¶
func (cw *ClockWindow) GetWidget() *widgets.Paragraph
returns the widget
type GaugeComponent ¶
Describes a gauge component
type IRefreshable ¶
type IRefreshable interface {
// Function to call when refresh is needed
Refresh()
}
Describes a component that can be refreshed
type LogWindow ¶
LogWindow is a wrapper class over the lists to provide handy high level functionality for rendering logs
func GetEventLog ¶
Returns a new list for event logs
type UptimeTrackerWindow ¶
type UptimeTrackerWindow struct { GaugeComponent // contains filtered or unexported fields }
Tracks overall uptime for the defensive team
func NewUptimeTrackerWindow ¶
func NewUptimeTrackerWindow(combatService combat.IService) *UptimeTrackerWindow
Constructor for an UptimeTrackerWindow
func (*UptimeTrackerWindow) GetWidget ¶
func (utw *UptimeTrackerWindow) GetWidget() *widgets.Gauge
func (*UptimeTrackerWindow) Refresh ¶
func (utw *UptimeTrackerWindow) Refresh()