game.events
Class CivilizationSizeEvent

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

public class CivilizationSizeEvent
extends AbstractEvent

Event fired when the specified civilization reaches a certain size (or greater).


Constructor Summary
CivilizationSizeEvent()
          Constructor.
 
Method Summary
static XML getXML()
           
 boolean hasOccurred()
          Check to see if the event has happened.
 void setSize(int value)
          Setter for size 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

CivilizationSizeEvent

public CivilizationSizeEvent()
Constructor.

Method Detail

setSize

public void setSize(int value)
Setter for size required.

Parameters:
value - the target size.

hasOccurred

public boolean hasOccurred()
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()