civquest.gameChange
Class AbstractFieldChange

java.lang.Object
  extended bycivquest.gameChange.AbstractFieldChange
All Implemented Interfaces:
FieldChange, GameChange

public abstract class AbstractFieldChange
extends java.lang.Object
implements FieldChange


Field Summary
protected  Coordinate[] coords
           
protected  java.lang.String name
           
 
Constructor Summary
AbstractFieldChange(Coordinate coord)
           
AbstractFieldChange(Coordinate[] coords)
           
 
Method Summary
 Coordinate[] getCoords()
          Returns the Coordinate(s) of the Field(s) affected by this FieldChange.
 void notifyListeners()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface civquest.gameChange.GameChange
execute
 

Field Detail

coords

protected Coordinate[] coords

name

protected java.lang.String name
Constructor Detail

AbstractFieldChange

public AbstractFieldChange(Coordinate coord)

AbstractFieldChange

public AbstractFieldChange(Coordinate[] coords)
Method Detail

getCoords

public Coordinate[] getCoords()
Description copied from interface: FieldChange
Returns the Coordinate(s) of the Field(s) affected by this FieldChange. Implementors may define which index has which meaning (an example is: FieldChange moveUnit, index 0 = source-field, index 1 = dest-field).

Specified by:
getCoords in interface FieldChange
Returns:
the Coordinate(s) of the Field(s) affected by this FieldChange

notifyListeners

public void notifyListeners()
Specified by:
notifyListeners in interface GameChange