rove/pkg/game/rover.go

31 lines
777 B
Go
Raw Normal View History

2020-06-06 16:53:42 +01:00
package game
import (
"github.com/mdiluz/rove/pkg/objects"
"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
Inventory []objects.Object `json:"inventory"`
2020-07-04 12:01:35 +01:00
// Capacity is the maximum number of inventory items
Capacity int `json:"capacity"`
// Integrity represents current rover health
Integrity int `json:"integrity"`
2020-07-04 12:19:51 +01:00
// MaximumIntegrity is the full integrity of the rover
MaximumIntegrity int `json:"maximum-integrity"`
2020-06-06 16:53:42 +01:00
}