civquest.gameChange
Interface NationChange

All Superinterfaces:
GameChange
All Known Implementing Classes:
AbstractCityFieldNationChange, AbstractFieldNationUnitChange, AbstractNationChange

public interface NationChange
extends GameChange

A NationChange is a GameChange modifying one or several nations in some way. A GameChange is a NationChange, if one of the following conditions meet: (1) properties of the Nation (for example its name) change (2) a Nation looses or gains something ((((3) Something the nation owns is altered in some way: This is a NationChange, if you can't determine the affected nation otherwise. For example, a unit knows by whom it is owned.))) (really necessary?)


Field Summary
static int ACTIVATE_NATION
          This constant marks the fact that this NationChange activates some Nation.
static int ADD_NATION
          This constant marks the fact that a NationChange adds a nation.
 
Method Summary
 int[] getNationIDs()
          Returns information about all nations affected by this NationChange.
 
Methods inherited from interface civquest.gameChange.GameChange
execute, notifyListeners
 

Field Detail

ADD_NATION

public static final int ADD_NATION
This constant marks the fact that a NationChange adds a nation. Therefore, its id is unknown until execution of the NationChange.

See Also:
Constant Field Values

ACTIVATE_NATION

public static final int ACTIVATE_NATION
This constant marks the fact that this NationChange activates some Nation. The old Nation gets deactivated. This constant exists because Listeners have to execute some special events when they get notified about such an event.

See Also:
Constant Field Values
Method Detail

getNationIDs

public int[] getNationIDs()
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.

Returns:
int-array as described above