Files
galaxy-game/pkg/model/game/race.go
T
2025-09-25 02:13:16 +03:00

26 lines
377 B
Go

package game
import "github.com/google/uuid"
type Race struct {
ID uuid.UUID
Name string
Killed bool
// Votes float64
Ally uuid.UUID // Race's Votes receiver
Drive float64
Weapons float64
Shields float64
Cargo float64
}
func (r Race) FlightDistance() float64 {
return r.Drive * 40
}
func (r Race) VisibilityDistance() float64 {
return r.Drive * 30
}