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 classAction.ActionTypeEnumeration 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 booleanequals(Object that)inthashCode()LineSegmentlineSegment()StringtoString()Action.ActionTypetype()
-
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