Package turtle
Class Action
java.lang.Object
turtle.Action
public class Action extends Object
An immutable drawable turtle action.
PS0 instructions: do NOT change this class.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Action.ActionType
Enumeration of turtle action types. -
Constructor Summary
Constructors Constructor Description Action(Action.ActionType type, String displayString, LineSegment lineSeg)
Represent a new action. -
Method Summary
Modifier and Type Method Description boolean
equals(Object that)
int
hashCode()
LineSegment
lineSegment()
String
toString()
Action.ActionType
type()
-
Constructor Details
-
Action
Represent a new action.- Parameters:
type
- type of actiondisplayString
- text that describes the actionlineSeg
- line segment associated with the action, may be null
-
-
Method Details