game.events
Class ConditionEvent

java.lang.Object
  |
  +--game.events.AbstractEvent
        |
        +--game.events.ConditionEvent
All Implemented Interfaces:
Event

public class ConditionEvent
extends AbstractEvent

Event fired if the condition is met in the specified civilization.


Constructor Summary
ConditionEvent()
           
 
Method Summary
static XML getXML()
           
 boolean hasOccurred()
          Check to see if the event has happened.
 void setCondition(java.lang.String value)
          The condition required.
 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

ConditionEvent

public ConditionEvent()
Method Detail

setCondition

public void setCondition(java.lang.String value)
The condition required.


hasOccurred

public boolean hasOccurred()
Description copied from interface: Event
Check to see if the event has happened.

Returns:
true if the event has occurred.

toString

public java.lang.String toString()
Implementation of the Object method.

Overrides:
toString in class java.lang.Object
Returns:
a string representation.

getXML

public static XML getXML()