bot
Class Eyes

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

public class Eyes
extends Thing

A thing which returns what the bot is looking at. (I.e. keep looking down hall and return the next Thing visible.)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class bot.Thing
name, owner
 
Constructor Summary
Eyes()
           
Eyes(Bot owner)
           
 
Method Summary
 String examine()
          Describe the thing.
 Thing look()
          Return number of walls adjacent.
 String pictureName()
          This is the graphic that should be used to render the thing on the screen.
 String use()
          Look and return what you see.
 
Methods inherited from class bot.Thing
claim, clone, getName, getOwner, nudge, toString, weight
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Eyes

public Eyes()

Eyes

public Eyes(Bot owner)
Method Detail

use

public String use()
Look and return what you see.

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.

look

public Thing look()
Return number of walls adjacent.


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