Implement a command queue on the world
Not currently executed
This commit is contained in:
parent
e3ce87e964
commit
0a0a32cf58
6 changed files with 120 additions and 15 deletions
|
@ -73,7 +73,7 @@ func TestWorld_GetSetMovePosition(t *testing.T) {
|
|||
|
||||
bearing := North
|
||||
duration := 1
|
||||
newpos, err = world.MoveRover(a, bearing, duration)
|
||||
newpos, err = world.MoveRover(a, bearing)
|
||||
assert.NoError(t, err, "Failed to set position for rover")
|
||||
pos.Add(Vector{0, attribs.Speed * duration}) // We should have move one unit of the speed north
|
||||
assert.Equal(t, pos, newpos, "Failed to correctly move position for rover")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue