bot
Class Bomb

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

public class Bomb
extends Thing

See Also:
Serialized Form

Field Summary
 
Fields inherited from class bot.Thing
name, owner
 
Constructor Summary
Bomb()
           
 
Method Summary
 String examine()
          Describe the thing.
 void nudge(Bot bot)
          When grabbed, this method gets called to tell the thing it has been disturbed.
 String pictureName()
          This is the graphic that should be used to render the thing on the screen.
 String use()
          All things can be used.
 double weight()
          Weight of the Thing in milliBots.
 
Methods inherited from class bot.Thing
claim, clone, getName, getOwner, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bomb

public Bomb()
Method Detail

use

public String use()
Description copied from class: Thing
All things can be used.

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.

nudge

public void nudge(Bot bot)
When grabbed, this method gets called to tell the thing it has been disturbed.

Overrides:
nudge in class 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