bot
Class Actor

java.lang.Object
  extended bybot.Thing
      extended bybot.Actor
All Implemented Interfaces:
Cloneable, Serializable
Direct Known Subclasses:
Acid, Critter, Pit, Scorch

public class Actor
extends Thing
implements Serializable

Actors are things that, when installed as Actors in a given square, can act on the bot when the bot steps into the square. When the BotBoard moves a bot into a given square, it calls the act() method of any actor in that square.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class bot.Thing
name, owner
 
Constructor Summary
Actor()
           
Actor(String s)
           
 
Method Summary
 void act(Bot bot)
          Override this method to make the actor do something to the passed bot.
 String pictureName()
          We are usually invisible.
 
Methods inherited from class bot.Thing
claim, clone, examine, getName, getOwner, nudge, toString, use, weight
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Actor

public Actor()

Actor

public Actor(String s)
Method Detail

act

public void act(Bot bot)
Override this method to make the actor do something to the passed bot.


pictureName

public String pictureName()
We are usually invisible.

Overrides:
pictureName in class Thing