info.gridworld.actor
Class Rock

java.lang.Object
  extended by info.gridworld.actor.Actor
      extended by 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.


Constructor Summary
Rock()
           
 
Method Summary
 void act()
          This method overrides the act method in the Actor class to do nothing.
 
Methods inherited from class info.gridworld.actor.Actor
getColor, getDirection, getGrid, getLocation, moveTo, putSelfInGrid, removeSelfFromGrid, setColor, setDirection, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rock

public Rock()
Method Detail

act

public void act()
This method overrides the act method in the Actor class to do nothing.

Overrides:
act in class Actor