Add rover inventory capacity and test

This commit is contained in:
Marc Di Luzio 2020-07-04 12:01:35 +01:00
parent e6ff453ff1
commit 2eaed1447d
7 changed files with 104 additions and 47 deletions

View file

@ -19,6 +19,9 @@ type Rover struct {
// Inventory represents any items the rover is carrying
Inventory []objects.Object `json:"inventory"`
// Capacity is the maximum number of inventory items
Capacity int `json:"capacity"`
// Integrity represents current rover health
Integrity int `json:"integrity"`
}