| Constructor and Description |
|---|
AbstractEvent(EnumSpecialEvent eventType,
Territory landArea,
int duration)
Creates a special event object
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyEffects()
Applies effects of the event to the to the landArea.
|
int |
getDuration() |
EnumSpecialEvent |
getEventType() |
Territory |
getLandArea() |
abstract MapPoint |
getLocation()
Return the longitue and latitude location of the event.
|
public AbstractEvent(EnumSpecialEvent eventType, Territory landArea, int duration)
eventType - ActionType of event this will belandArea - The land area (Territory, Region, etc...) this event effectsduration - How many simulator years this event lastspublic void applyEffects()
public abstract MapPoint getLocation()
public EnumSpecialEvent getEventType()
public int getDuration()
public Territory getLandArea()