public abstract class SmoothMover
extends greenfoot.Actor
| Constructor and Description |
|---|
SmoothMover() |
| Modifier and Type | Method and Description |
|---|---|
double |
getExactX()
Return the exact x-coordinate (as a double).
|
double |
getExactY()
Return the exact y-coordinate (as a double).
|
void |
move(double distance)
Move forward by the specified exact distance.
|
void |
move(int distance)
Move forward by the specified distance.
|
void |
setLocation(double x,
double y)
Set the location using exact coordinates.
|
void |
setLocation(int x,
int y)
Set the location using integer coordinates.
|
act, addedToWorld, getImage, getIntersectingObjects, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneObjectAtOffset, getRotation, getWorld, getWorldOfType, getX, getY, intersects, isAtEdge, isTouching, removeTouching, setImage, setImage, setRotation, turn, turnTowardspublic void move(int distance)
move in class greenfoot.Actorpublic void move(double distance)
public void setLocation(double x,
double y)
public void setLocation(int x,
int y)
setLocation in class greenfoot.Actorpublic double getExactX()
public double getExactY()