rove/pkg/game/rover.go

24 lines
536 B
Go
Raw Normal View History

2020-06-06 16:53:42 +01:00
package game
import (
"github.com/mdiluz/rove/pkg/vector"
)
2020-06-06 16:53:42 +01:00
// Rover describes a single rover in the world
type Rover struct {
// Unique name of this rover
Name string `json:"name"`
2020-06-06 16:53:42 +01:00
2020-06-26 18:22:37 +01:00
// Pos represents where this rover is in the world
Pos vector.Vector `json:"pos"`
// Range represents the distance the unit's radar can see
Range int `json:"range"`
2020-06-26 18:13:23 +01:00
// Inventory represents any items the rover is carrying
2020-06-26 23:41:36 +01:00
Inventory []byte `json:"inventory"`
// Integrity represents current rover health
Integrity int `json:"integrity"`
2020-06-06 16:53:42 +01:00
}