civquest.gameChange
Interface FieldChange
- All Superinterfaces:
- GameChange
- All Known Implementing Classes:
- AbstractCityFieldNationChange, AbstractFieldChange, AbstractFieldCityChange, AbstractFieldCityPlayerChange, AbstractFieldNationUnitChange, AbstractFieldUnitChange, AbstractFieldUnitPlayerChange
- public interface FieldChange
- extends GameChange
GameChange that alters a Field in some way. This includes the following events:
(1) any change of a property of the Field itself - for example vegetation
(2) adding/removing some object to/from the Field - for example adding or moving a unit
NOTE: Changing a property of some object located on a Field is not a FieldChange - for
example reducing a unit's live-points by one half is a UnitChange, but not a FieldChange,
although the unit will probably be painted on the field.
Method Summary |
Coordinate[] |
getCoords()
Returns the Coordinate(s) of the Field(s) affected by this FieldChange. |
getCoords
public Coordinate[] getCoords()
- 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).
- Returns:
- the Coordinate(s) of the Field(s) affected by this FieldChange