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
|
Field Summary |
protected boolean |
can_feel
Can a bot feel the Actor when installed? |
|
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. |
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.
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.
feelable
public boolean feelable()
pictureName
public String pictureName()
- We are usually invisible.
- Overrides:
pictureName in class Thing