civquest.gameChange
Class AbstractNationChange

java.lang.Object
  extended bycivquest.gameChange.AbstractNationChange
All Implemented Interfaces:
GameChange, NationChange
Direct Known Subclasses:
ActivateNation

public abstract class AbstractNationChange
extends java.lang.Object
implements NationChange


Field Summary
protected  java.lang.String name
           
protected  int[] nationIDs
           
 
Fields inherited from interface civquest.gameChange.NationChange
ACTIVATE_NATION, ADD_NATION
 
Constructor Summary
AbstractNationChange(int nationID)
           
AbstractNationChange(int[] nationIDs)
           
 
Method Summary
 int[] getNationIDs()
          Returns information about all nations affected by this NationChange.
 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

nationIDs

protected int[] nationIDs

name

protected java.lang.String name
Constructor Detail

AbstractNationChange

public AbstractNationChange(int nationID)

AbstractNationChange

public AbstractNationChange(int[] nationIDs)
Method Detail

getNationIDs

public int[] getNationIDs()
Description copied from interface: NationChange
Returns information about all nations affected by this NationChange. Implementors may define which index has which meaning (for example: NationChange = TransferMoney, index 0 = nation loosing money, index 1 = nation getting the money). A value >= 0 indicates the id of a nation, a value < 0 must be one of the constants defined above.

Specified by:
getNationIDs in interface NationChange
Returns:
int-array as described above

notifyListeners

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