game.events.actions
Class ActivateEvent

java.lang.Object
  |
  +--game.events.actions.ActivateEvent
All Implemented Interfaces:
Action

public class ActivateEvent
extends java.lang.Object
implements Action

Activate a named event, with possible delay.


Constructor Summary
ActivateEvent()
          Constructor.
 
Method Summary
 void perform(Civilization dummy)
          Perform the action.
 void setDelay(int value)
          Set the delay.
 void setEvent(java.lang.String value)
          Set event name.
 java.lang.String toString()
          Implementation of the Object method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActivateEvent

public ActivateEvent()
Constructor.

Method Detail

setEvent

public void setEvent(java.lang.String value)
Set event name.

Parameters:
value - the name of the event to activate.

setDelay

public void setDelay(int value)
Set the delay.


perform

public void perform(Civilization dummy)
Perform the action.

Specified by:
perform in interface Action

toString

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

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