java.lang.Objectgreenfoot.Actor
littleRed
public class littleRed
| Constructor Summary | |
|---|---|
littleRed()
|
|
| Method Summary | |
|---|---|
void |
act()
The act method is called by the greenfoot framework to give objects a chance to perform some action. |
boolean |
canMove(int direction)
Test if we can move. |
void |
tryMove()
Move, after verifying that we are not moving outside the world boundary and a directional key was pressed |
| Methods inherited from class greenfoot.Actor |
|---|
addedToWorld, getHeight, getImage, getIntersectingObjects, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneObjectAtOffset, getRotation, getWidth, getWorld, getX, getY, intersects, setImage, setImage, setLocation, setRotation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public littleRed()
| Method Detail |
|---|
public void act()
greenfoot.Actor
act in class greenfoot.Actorpublic boolean canMove(int direction)
public void tryMove()