com.collegeboard.gridworld.actor
Class Alien

java.lang.Object
  extended by com.collegeboard.gridworld.actor.Actor
      extended by com.collegeboard.gridworld.actor.Alien

public class Alien
extends Actor


Constructor Summary
Alien()
          Constructs a green critter that drops flowers as it moves.
Alien(Color color)
          Constructs a critter of a given color that drops flowers as it moves.
 
Method Summary
 void act()
           
 void move()
           
 void turn()
          Makes this critter turn by 45 degrees to the right.
 
Methods inherited from class com.collegeboard.gridworld.actor.Actor
getColor, getDirection, getGrid, getLocation, moveTo, putSelfInGrid, removeSelfFromGrid, setColor, toString, turnBy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Alien

public Alien()
Constructs a green critter that drops flowers as it moves.


Alien

public Alien(Color color)
Constructs a critter of a given color that drops flowers as it moves.

Parameters:
color - the color for this critter
Method Detail

act

public void act()
Specified by:
act in class Actor

turn

public void turn()
Makes this critter turn by 45 degrees to the right.


move

public void move()