Move Rover position into main class
This commit is contained in:
parent
8019ea4e25
commit
7ee340e976
9 changed files with 126 additions and 77 deletions
|
@ -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"`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue