23 lines
300 B
Go
23 lines
300 B
Go
package game
|
|
|
|
type Race struct {
|
|
Name string
|
|
Killed bool
|
|
|
|
Votes float64
|
|
VoteFor string
|
|
|
|
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
|
|
}
|