bot
Class Actor
java.lang.Object
bot.Thing
bot.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
|
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. |
Actor
public Actor()
Actor
public Actor(String s)
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