Class littleRed

java.lang.Object
  extended by greenfoot.Actor
      extended by littleRed

public class littleRed
extends greenfoot.Actor


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

littleRed

public littleRed()
Method Detail

act

public void act()
Description copied from class: greenfoot.Actor
The act method is called by the greenfoot framework to give objects a chance to perform some action. At each action step in the environment, each object's act method is invoked, in unspecified order. This method does nothing. It should be overridden in subclasses to implement an object's action.

Overrides:
act in class greenfoot.Actor

canMove

public boolean canMove(int direction)
Test if we can move. Return true if we can, false otherwise.


tryMove

public void tryMove()
Move, after verifying that we are not moving outside the world boundary and a directional key was pressed