|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbot.Thing
bot.Marker
bot.reilly.HeadingMarker
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
| 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 |
public HeadingMarker()
public HeadingMarker(int heading)
| Method Detail |
public String pictureName()
Thing
pictureName in class Markerpublic void setHeading(int dir)
public String toString()
Thing
toString in class Markerpublic int tag()
public String use()
Thing
use in class Markerpublic String examine()
Marker
examine in class Markerpublic void setTag(int dir)
Marker
setTag in class Markerdir - The new value for the tag.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||