game.events
Class AbstractCivilizationEvent

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

public abstract class AbstractCivilizationEvent
extends AbstractEvent

Class to cover civilization specific events.


Constructor Summary
AbstractCivilizationEvent()
          Constructor.
 
Method Summary
 Civilization getCivilization()
          Return the civilization.
 java.lang.String getCivilizationName()
          Return the civilization name.
 void setCivilization(java.lang.String value)
          The civilization which has to meet the condition.
 
Methods inherited from class game.events.AbstractEvent
activate, addActivateEvent, addBulletin, addDisplay, addEnableTechnology, addEventAction, addGiveResearch, addRemoveEvent, addRemoveFeature, addSaveCondition, addSaveCondition, addUnits, autocenter, cancel, getAfterTurn, getName, getNegative, isCancelled, isCurrent, performActions, setAfter, setCancelCondition, setCancelTurn, setCenterView, setCenterView, setInactive, setName, setNegative
 
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

AbstractCivilizationEvent

public AbstractCivilizationEvent()
Constructor.

Method Detail

setCivilization

public void setCivilization(java.lang.String value)
The civilization which has to meet the condition.

Overrides:
setCivilization in class AbstractEvent
Parameters:
value - the name of the civilization invovled.

getCivilization

public Civilization getCivilization()
Return the civilization.

Specified by:
getCivilization in interface Event
Overrides:
getCivilization in class AbstractEvent
Returns:
the civilization.

getCivilizationName

public java.lang.String getCivilizationName()
Return the civilization name.

Overrides:
getCivilizationName in class AbstractEvent
Returns:
the civilization name.