Files
cheesy-arena-lite/field/realtime_score.go
2020-04-04 16:48:58 -07:00

21 lines
510 B
Go

// Copyright 2017 Team 254. All Rights Reserved.
// Author: pat@patfairbank.com (Patrick Fairbank)
//
// Model representing the current state of the score during a match.
package field
import "github.com/Team254/cheesy-arena/game"
type RealtimeScore struct {
CurrentScore game.Score
Cards map[string]string
FoulsCommitted bool
powerPort game.PowerPort
ControlPanel game.ControlPanel
}
func NewRealtimeScore() *RealtimeScore {
return &RealtimeScore{Cards: make(map[string]string)}
}