info.gridworld.actor
Class Rock
java.lang.Object
info.gridworld.actor.Actor
info.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 |
act()
This method overrides the act method in the Actor class
to do nothing. |
Rock
public Rock()
act
public void act()
- This method overrides the act method in the Actor class
to do nothing.
- Overrides:
act in class Actor