mars.tools
Class ScavengerHunt
java.lang.Object
|
+--mars.tools.ScavengerHunt
- All Implemented Interfaces:
- MarsTool, java.util.Observer
- public class ScavengerHunt
- extends java.lang.Object
- implements java.util.Observer, MarsTool
Demo of Mars tool capability. Ken Vollmar, 27 Oct 2006 KenVollmar@missouristate.edu
This tool displays movements by a series of players in a game of ScavengerHunt.
Players will read and write MIPS memory-mapped locations to move and regain energy.
See accompanying documentation for memory-mapped addresses, rules of the game, etc.
Method Summary |
void |
action()
Performs tool functions. |
java.lang.String |
getName()
Return a name you have chosen for this tool. |
void |
update(java.util.Observable o,
java.lang.Object arg)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScavengerHunt
public ScavengerHunt()
getName
public java.lang.String getName()
- Description copied from interface:
MarsTool
- Return a name you have chosen for this tool. It will appear as the
menu item.
- Specified by:
getName
in interface MarsTool
action
public void action()
- Description copied from interface:
MarsTool
- Performs tool functions. It will be invoked when the tool is selected
from the Tools menu.
- Specified by:
action
in interface MarsTool
update
public void update(java.util.Observable o,
java.lang.Object arg)
- Specified by:
update
in interface java.util.Observer