|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--game.events.AbstractEvent
Abstract base class for events. Holds the list of events.
| Constructor Summary | |
AbstractEvent()
Constructor. |
|
| Method Summary | |
void |
activate()
Set the event to active. |
void |
addActivateEvent(ActivateEvent value)
Add an activate event action. |
void |
addBulletin(BulletinAction value)
Add a bulletin action. |
void |
addDisplay(DisplayAction value)
Add a display action. |
void |
addEnableTechnology(EnableTechnologyAction value)
Add an enable technology action. |
void |
addEventAction(EventAction value)
Add an event action. |
void |
addGiveResearch(IssueResearchPointsAction value)
Add a issue research points action. |
void |
addRemoveEvent(RemoveEvent value)
Add a remove event action. |
void |
addRemoveFeature(RemoveFeature value)
Add a remove feature from square action. |
void |
addSaveCondition(SaveCondition value)
Add a save condition action. |
void |
addSaveCondition(java.lang.String value)
Add a save condition action. |
void |
addUnits(CreateUnitAction value)
Add a create units action. |
void |
autocenter()
Autocenter the view. |
void |
cancel()
Cancel this event. |
int |
getAfterTurn()
Return the time the event is to be inactive for. |
Civilization |
getCivilization()
Get the civilization involved. |
java.lang.String |
getCivilizationName()
Get the name of the civilization involved. |
java.lang.String |
getName()
Get name. |
boolean |
getNegative()
Get negative, negative reverses the firing condition for the event. |
boolean |
isCancelled()
Return true if the cancel condition is met. |
boolean |
isCurrent()
Return true if the cancel condition is met. |
void |
performActions()
Perform all the actions associated with this event. |
void |
setAfter(int value)
Set the time the event is to be inactive for. |
void |
setCancelCondition(java.lang.String value)
Set cancel condition. |
void |
setCancelTurn(int value)
Set cancel turn. |
void |
setCenterView(Location value)
|
void |
setCenterView(java.lang.String value)
|
void |
setCivilization(java.lang.String value)
Set the name of the civilization involved. |
void |
setInactive(java.lang.Boolean dummy)
Set the active flag off at the start. |
void |
setName(java.lang.String value)
Set the name. |
void |
setNegative(java.lang.Boolean dummy)
Set negative. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface game.events.Event |
hasOccurred |
| Constructor Detail |
public AbstractEvent()
| Method Detail |
public java.lang.String getName()
getName in interface Eventpublic void setName(java.lang.String value)
public void activate()
activate in interface Eventpublic void setInactive(java.lang.Boolean dummy)
public void setNegative(java.lang.Boolean dummy)
public boolean getNegative()
getNegative in interface Eventpublic void performActions()
performActions in interface Eventpublic Civilization getCivilization()
getCivilization in interface Eventpublic java.lang.String getCivilizationName()
public void setCivilization(java.lang.String value)
value - the name of the civilization invovled.public void setAfter(int value)
setAfter in interface Eventvalue - the time the event is to be inactive for.public int getAfterTurn()
public void setCancelCondition(java.lang.String value)
value - cancel condition name.public void setCancelTurn(int value)
value - cancel turn.public void setCenterView(Location value)
public void setCenterView(java.lang.String value)
public void autocenter()
Event
autocenter in interface Eventpublic boolean isCurrent()
isCurrent in interface Eventpublic void cancel()
cancel in interface Eventpublic boolean isCancelled()
isCancelled in interface Eventpublic void addRemoveFeature(RemoveFeature value)
value - the remove feature action to add.public void addDisplay(DisplayAction value)
value - the display action to add.public void addSaveCondition(SaveCondition value)
value - the save condition action to add.public void addSaveCondition(java.lang.String value)
value - the named condition action to add.public void addBulletin(BulletinAction value)
value - the bulletin action to add.public void addUnits(CreateUnitAction value)
value - the create units action to add.public void addEnableTechnology(EnableTechnologyAction value)
value - the enable technology action to add.public void addGiveResearch(IssueResearchPointsAction value)
value - the issue research points action to add.public void addEventAction(EventAction value)
value - the event action to add.public void addRemoveEvent(RemoveEvent value)
public void addActivateEvent(ActivateEvent value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||