com.collegeboard.gridworld.actor
Class Alien
java.lang.Object
com.collegeboard.gridworld.actor.Actor
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. |
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
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()