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
protected  boolean can_feel
          Can a bot feel the Actor when installed?
 
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.
 boolean feelable()
           
 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
 

Field Detail

can_feel

protected boolean can_feel
Can a bot feel the Actor when installed? If true, then Actor will be put in Thing place as well as Actor place when put in a square.

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.


feelable

public boolean feelable()

pictureName

public String pictureName()
We are usually invisible.

Overrides:
pictureName in class Thing