|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--game.events.AbstractEvent
|
+--game.events.AbstractSquareEvent
Class to represent an event affecting a square or a series of squares.
| Constructor Summary | |
AbstractSquareEvent()
Constructor. |
|
| Method Summary | |
void |
addLocation(Location value)
Add a location. |
void |
addLocation(java.lang.String value)
Add a location by name. |
void |
addRange(Range value)
Add a range. |
boolean |
hasOccurred()
Check to see if the event has happened. |
protected abstract boolean |
success(Square square)
Method to check whether this square succeeds, must be overridden by extending classes. |
java.lang.String |
toString()
Implementation of the Object method. |
| Methods inherited from class game.events.AbstractEvent |
activate, addActivateEvent, addBulletin, addDisplay, addEnableTechnology, addEventAction, addGiveResearch, addRemoveEvent, addRemoveFeature, addSaveCondition, addSaveCondition, addUnits, autocenter, cancel, getAfterTurn, getCivilization, getCivilizationName, getName, getNegative, isCancelled, isCurrent, performActions, setAfter, setCancelCondition, setCancelTurn, setCenterView, setCenterView, setCivilization, setInactive, setName, setNegative |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractSquareEvent()
| Method Detail |
public void addLocation(Location value)
public void addLocation(java.lang.String value)
value - the name of the location to add.public void addRange(Range value)
protected abstract boolean success(Square square)
square - the square to check.public boolean hasOccurred()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||