Add a TODO to the MoveRover command about blocking other rovers

This commit is contained in:
Marc Di Luzio 2020-06-06 18:45:23 +01:00
parent 91947f614c
commit 5c549ad8c3

View file

@ -115,6 +115,8 @@ func (w *World) MoveRover(id uuid.UUID, bearing Direction) (RoverAttributes, err
// Calculate the full movement based on the bearing
move := bearing.Vector().Multiplied(distance)
// TODO: Verify there's nothing blocking this movement
// Increment the position by the movement
i.Attributes.Pos.Add(move)