Interface ArchSimulation

All Known Implementing Classes:
DummyArchSimulation

public interface ArchSimulation

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

Version:
May 18, 2004
Author:
Alyce Brady

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.
 

Method Detail

startSimulation

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


dig

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


simulationOver

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


digSuccessful

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