public class Actor extends Turtle
referenceIdentification
Constructor and Description |
---|
Actor()
Constructs an actor with auto-generated name located at position [0, 0].
|
Actor(double x,
double y)
Constructs an actor with auto-generated name located at given position.
|
Actor(double x,
double y,
String name)
Constructs a named actor located at given position.
|
center, circle, closePolygon, containsInShape, directionTowards, directionTowards, distanceTo, distanceTo, dot, getDirection, getFillColor, getFont, getFrameCount, getFrameDuration, getFrameIndex, getMoveTurnSpeed, getName, getPane, getPenColor, getPenWidth, getPosition, getRange, getRangeStyle, getScale, getShape, getTextHeight, getTransparency, getViewCount, getViewIndex, getX, getY, invalidateParent, isPenDown, isPolygonOpen, isShapeAnimation, isViewBoundToDirection, isVisible, moveTo, moveTo, openPolygon, paintToPaneGraphics, penDown, penUp, print, printCenter, setDirection, setDirectionTowards, setDirectionTowards, setFillColor, setFont, setFrameDuration, setFrameIndex, setMoveTurnSpeed, setName, setPane, setPenColor, setPenDown, setPenWidth, setPosition, setPosition, setRange, setRangeStyle, setScale, setShape, setShapeAnimation, setTransparency, setViewBoundToDirection, setViewIndex, setVisible, setX, setY, stamp, step, textWidth, toString, turn, turnTowards, turnTowards
public Actor()
public Actor(double x, double y)
x
- the X-coordinate of the actor's position.y
- the Y-coordinate of the actor's position.public Actor(double x, double y, String name)
x
- the X-coordinate of the actor's position.y
- the Y-coordinate of the actor's position.name
- the name of the actor.Copyright © 2017. All rights reserved.