java.lang.Objectgreenfoot.Actor
Animal
Crab
public class Crab
This class defines a crab. Crabs live on the beach.They like sand worms (very yummy, especially the green ones).
Constructor Summary | |
---|---|
Crab()
|
Method Summary | |
---|---|
void |
act()
|
Methods inherited from class Animal |
---|
atWorldEdge, canSee, eat, move, turn |
Methods inherited from class greenfoot.Actor |
---|
addedToWorld, getImage, getIntersectingObjects, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneObjectAtOffset, getRotation, 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 Crab()
Method Detail |
---|
public void act()
act
in class Animal