civquest.units.gameChange
Class ResetUnitTime

java.lang.Object
  extended bycivquest.gameChange.AbstractUnitChange
      extended bycivquest.units.gameChange.ResetUnitTime
All Implemented Interfaces:
GameChange, UnitChange

public class ResetUnitTime
extends AbstractUnitChange

This GameChange constructs a new Unit and adds it to MapData. Before executing, the coords, unitIDs, nationIDs-arrays all have length 1 and store the field-coordinate / UnitChange.ADD_UNIT / the id of the nation the new unit belongs to. After having called execute, unitIDs[0] stores the id of the newly constructed unit.


Field Summary
 
Fields inherited from class civquest.gameChange.AbstractUnitChange
name, unitIDs
 
Fields inherited from interface civquest.gameChange.UnitChange
ADD_UNIT, NOT_KNOWN, RESET_UNIT_TIME
 
Constructor Summary
ResetUnitTime(long unitID)
           
 
Method Summary
 void execute()
           
 
Methods inherited from class civquest.gameChange.AbstractUnitChange
getUnitIDs, notifyListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResetUnitTime

public ResetUnitTime(long unitID)
Method Detail

execute

public void execute()