Package blockly_robot.robot.logic.log
Class Movement
java.lang.Object
blockly_robot.robot.logic.log.Action
blockly_robot.robot.logic.log.Movement
Represents a movement made by a robot.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMovement(String name, VirtualRobot robot) Constructs a Movement object with the specified name and robot. -
Method Summary
-
Constructor Details
-
Movement
Constructs a Movement object with the specified name and robot.- Parameters:
name- the name of the movementrobot- the virtual robot
-
-
Method Details
-
to
-
updateTo
Sets the 'to' location of the movement and calculates the relocation and rotation values.- Returns:
- the updated Movement object
-
hasNext
public boolean hasNext() -
next
-
next
-
rotation
-
to
-
isRelocated
public boolean isRelocated() -
error
-
name
-