23 lines
300 B
Go
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
|
|
}
|