bot.reilly
Class HeadingMarker

java.lang.Object
  extended bybot.Thing
      extended bybot.Marker
          extended bybot.reilly.HeadingMarker
All Implemented Interfaces:
Cloneable, Serializable

public class HeadingMarker
extends Marker

Marker designed to hold and portray direction to the user. Uses * up/down/left/right image files to show which direction is * stored in the marker. Very useful for debugging bots that store * direction information in markers. * * @author Reilly Grant

See Also:
Serialized Form

Field Summary
 
Fields inherited from class bot.Thing
name, owner
 
Constructor Summary
HeadingMarker()
           
HeadingMarker(int heading)
           
 
Method Summary
 String examine()
          Return description of marker.
 String pictureName()
          This is the graphic that should be used to render the thing on the screen.
 void setHeading(int dir)
           
 void setTag(int dir)
          Set the value of the tag to v.
 int tag()
           
 String toString()
          Return string description of thing.
 String use()
          All things can be used.
 
Methods inherited from class bot.Marker
getTag, weight
 
Methods inherited from class bot.Thing
claim, clone, getName, getOwner, nudge
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HeadingMarker

public HeadingMarker()

HeadingMarker

public HeadingMarker(int heading)
Method Detail

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 Marker

setHeading

public void setHeading(int dir)

toString

public String toString()
Description copied from class: Thing
Return string description of thing.

Overrides:
toString in class Marker

tag

public int tag()

use

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

Overrides:
use in class Marker

examine

public String examine()
Description copied from class: Marker
Return description of marker. Convert direction tags to the string names of the directions.

Overrides:
examine in class Marker

setTag

public void setTag(int dir)
Description copied from class: Marker
Set the value of the tag to v.

Overrides:
setTag in class Marker
Parameters:
dir - The new value for the tag.