2020-06-06 16:53:42 +01:00
|
|
|
package game
|
|
|
|
|
2020-06-09 18:08:07 +01:00
|
|
|
import (
|
2020-07-03 17:00:04 +01:00
|
|
|
"github.com/mdiluz/rove/pkg/objects"
|
2020-06-09 18:08:07 +01:00
|
|
|
"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 {
|
2020-06-27 00:32:27 +01:00
|
|
|
// 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"`
|
|
|
|
|
2020-06-27 00:32:27 +01:00
|
|
|
// 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-07-03 17:00:04 +01:00
|
|
|
Inventory []objects.Object `json:"inventory"`
|
2020-06-27 01:14:17 +01:00
|
|
|
|
|
|
|
// Integrity represents current rover health
|
|
|
|
Integrity int `json:"integrity"`
|
2020-06-06 16:53:42 +01:00
|
|
|
}
|