new game, fs repo layer
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user