Move Rover position into main class

This commit is contained in:
Marc Di Luzio 2020-06-26 18:22:37 +01:00
parent 8019ea4e25
commit 7ee340e976
9 changed files with 126 additions and 77 deletions

View file

@ -16,9 +16,6 @@ type RoverAttributes struct {
// Name of this rover
Name string `json:"name"`
// Pos represents where this rover is in the world
Pos vector.Vector `json:"pos"`
// Capacity represents the maximum number of items the rover can carry
Capacity int `json:"capacity"`
}
@ -28,6 +25,9 @@ type Rover struct {
// Id is a unique ID for this rover
Id uuid.UUID `json:"id"`
// Pos represents where this rover is in the world
Pos vector.Vector `json:"pos"`
// Attributes represents the physical attributes of the rover
Attributes RoverAttributes `json:"attributes"`