Files
galaxy-game/pkg/model/game/race.go
T
2025-09-23 18:36:22 +03:00

23 lines
300 B
Go

package game
type Race struct {
Name string
Killed bool
Votes float32
VoteFor string
Drive float32
Weapons float32
Shields float32
Cargo float32
}
func (r Race) FlightDistance() float32 {
return r.Drive * 40
}
func (r Race) VisibilityDistance() float32 {
return r.Drive * 30
}