sample.mission
Class DeathMatch

java.lang.Object
  extended by net.sf.tankbattles.simulation.mission.AbstractMissionSimulator
      extended by sample.mission.DeathMatch
All Implemented Interfaces:
java.lang.Runnable

public class DeathMatch
extends AbstractMissionSimulator

Deathmatch implementation for a mission simulator. Evaluates if there's only one team alive, and if so sinalizes as finished.

Author:
erickpassos

Constructor Summary
DeathMatch()
           
 
Method Summary
 void update()
          Called by the mission simulator loop for evaluanting the goals.
 
Methods inherited from class net.sf.tankbattles.simulation.mission.AbstractMissionSimulator
createInstance, getMission, isFinished, run
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeathMatch

public DeathMatch()
Method Detail

update

public void update()
Called by the mission simulator loop for evaluanting the goals. This implementation only checks whether there's only or more than one team alive, by checking their Tanks alive status.

Specified by:
update in class AbstractMissionSimulator