game.events
Class BuildUnitEvent

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

public class BuildUnitEvent
extends AbstractEvent

An event to signal that a particular type of unit has been built.


Constructor Summary
BuildUnitEvent()
          Constructor.
 
Method Summary
static XML getXML()
           
 boolean hasOccurred()
          Check to see if the event has happened.
 void setUnit(java.lang.String value)
          Add the unit (archetype) name.
 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

BuildUnitEvent

public BuildUnitEvent()
Constructor.

Method Detail

setUnit

public void setUnit(java.lang.String value)
Add the unit (archetype) name.


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()