Class DummyArchSimulation

java.lang.Object
  |
  +--DummyArchSimulation
All Implemented Interfaces:
ArchSimulation

public class DummyArchSimulation
extends java.lang.Object
implements ArchSimulation

Archaeological Dig:
The DummyArchSimulation object controls the simulation of digging around artifacts in an archaeological dig.

Version:
May 18, 2004
Author:
Alyce Brady

Constructor Summary
DummyArchSimulation()
           
 
Method Summary
 void dig(edu.kzoo.grid.Location loc)
          Handles a mouse click on a location of the grid.
 boolean digSuccessful()
          Returns true if the simulation is over and the user successfully identified all artifact locations without damaging any; false otherwise.
 boolean simulationOver()
          Returns true if the simulation is over; otherwise, returns false.
 void startSimulation(edu.kzoo.grid.Grid grid)
          Starts or restarts the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyArchSimulation

public DummyArchSimulation()
Method Detail

startSimulation

public void startSimulation(edu.kzoo.grid.Grid grid)
Starts or restarts the application.

Specified by:
startSimulation in interface ArchSimulation

dig

public void dig(edu.kzoo.grid.Location loc)
Handles a mouse click on a location of the grid.

Specified by:
dig in interface ArchSimulation

simulationOver

public boolean simulationOver()
Returns true if the simulation is over; otherwise, returns false.

Specified by:
simulationOver in interface ArchSimulation

digSuccessful

public boolean digSuccessful()
Returns true if the simulation is over and the user successfully identified all artifact locations without damaging any; false otherwise.

Specified by:
digSuccessful in interface ArchSimulation