bot
Class Hammer
java.lang.Object
bot.Thing
bot.Hammer
- All Implemented Interfaces:
- Cloneable, Serializable
- public class Hammer
- extends Thing
Thing which knocks down all adjacent walls when used.
- See Also:
- Serialized Form
|
Method Summary |
String |
examine()
Describe the thing. |
String |
pictureName()
This is the graphic that should be used to render the thing on the screen. |
String |
use()
Knock down all adjacent walls. |
double |
weight()
Weight of the Thing in milliBots. |
Hammer
public Hammer(Bot owner)
Hammer
public Hammer()
use
public String use()
- Knock down all adjacent walls. Will extend maze if needed.
- Overrides:
use in class Thing
- Returns:
- A string describing what happened, or returning any info
about the use.
examine
public String examine()
- Description copied from class:
Thing
- Describe the thing.
- Overrides:
examine in class Thing
- Returns:
- A string which is a human-readable description of the thing.
pictureName
public String pictureName()
- Description copied from class:
Thing
- This is the graphic that should be used to render the thing on the screen.
- Overrides:
pictureName in class Thing
weight
public double weight()
- Description copied from class:
Thing
- Weight of the Thing in milliBots. (A milliBot is one thousandth of
the weight of a Standard Bot.)
- Overrides:
weight in class Thing