com.collegeboard.gridworld.actor
Class Rock
java.lang.Object
com.collegeboard.gridworld.actor.Actor
com.collegeboard.gridworld.actor.Rock
public class Rock
- extends Actor
A rock is an actor that does nothing. It is commonly used to
block other actors from moving.
copyright© 2005 Cay S. Horstmann (http://horstmann.com)
- Author:
- Cay Horstmann
|
Constructor Summary |
Rock()
|
|
Method Summary |
void |
setColor(Color newColor)
This method overrides the setColor method in the Actor class
to do nothing--rocks are always black. |
Rock
public Rock()
setColor
public void setColor(Color newColor)
- This method overrides the setColor method in the Actor class
to do nothing--rocks are always black.
- Overrides:
setColor in class Actor
- Parameters:
newColor - the new color, ignored by this method.