bot
Class Hammer

java.lang.Object
  extended bybot.Thing
      extended bybot.Hammer
All Implemented Interfaces:
Cloneable, Serializable

public class Hammer
extends Thing

Thing which knocks down all adjacent walls when used.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class bot.Thing
name, owner
 
Constructor Summary
Hammer()
           
Hammer(Bot owner)
           
 
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.
 
Methods inherited from class bot.Thing
claim, clone, getName, getOwner, nudge, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Hammer

public Hammer(Bot owner)

Hammer

public Hammer()
Method Detail

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