public interface CampaignEventPlugin extends CallEvent.CallableEvent
Modifier and Type | Interface and Description |
---|---|
static class |
CampaignEventPlugin.CampaignEventCategory |
static interface |
CampaignEventPlugin.PriceUpdatePlugin |
Modifier and Type | Method and Description |
---|---|
void |
advance(float amount) |
boolean |
allowMultipleOngoingForSameTarget()
Deprecated.
|
boolean |
callEvent(java.lang.String ruleId,
InteractionDialogAPI dialog,
java.util.List<Misc.Token> params,
java.util.Map<java.lang.String,MemoryAPI> memoryMap)
Called by the CallEvent command (called from rules.csv).
|
void |
cleanup()
Called when this instance of the event is removed from the event manager (either due to event being over,
or due to event probability dropping to 0).
|
java.lang.String |
getCurrentImage()
The larger image in the message detail.
|
java.lang.String |
getCurrentMessageIcon()
Will be called by SectorAPI.reportEventStage().
|
CampaignEventPlugin.CampaignEventCategory |
getEventCategory() |
java.lang.String |
getEventIcon()
Override for the "image" normally specified in events.json.
|
java.lang.String |
getEventName() |
CampaignEventTarget |
getEventTarget() |
java.lang.String |
getEventType() |
java.awt.Color[] |
getHighlightColors(java.lang.String stageId)
Since multiple reports (possibly from different channels) are possible per stage:
1) All reports must have the highlighted text occur in the same order, which is the order
this method returns them in, and
2) Not all highlights have to occur in every report.
|
java.lang.String[] |
getHighlights(java.lang.String stageId)
Since multiple reports (possibly from different channels) are possible per stage:
1) All reports must have the highlighted text occur in the same order, which is the order
this method returns them in, and
2) Not all highlights have to occur in every report.
|
java.lang.String |
getId()
Unique ID for this instance of the event.
|
MemoryAPI |
getMemory() |
java.util.List<CampaignEventPlugin.PriceUpdatePlugin> |
getPriceUpdates() |
java.util.List<java.lang.String> |
getRelatedCommodities() |
java.lang.String |
getStageIdForLikely()
event_stage for when the event is likely, but hasn't happened yet.
|
java.lang.String |
getStageIdForPossible()
event_stage for when the event is possible, but hasn't happened yet.
|
java.util.Map<java.lang.String,java.lang.String> |
getTokenReplacements()
Token values for filling out descriptions from reports.csv.
|
MessagePriority |
getWarningWhenLikelyPriority()
Message priority for the "event is likely" report.
|
MessagePriority |
getWarningWhenPossiblePriority()
Message priority for the "event is possible" report.
|
void |
init(java.lang.String eventType,
CampaignEventTarget eventTarget)
Called when the EventProbability for this event is accessed.
|
boolean |
isDone() |
void |
setParam(java.lang.Object param)
Only called when an event is started via CampaignEventManagerAPI.startEvent().
|
void |
setProbability(float p)
The probability that the event had of happening, set right before startEvent() is called.
|
boolean |
showAllMessagesIfOngoing()
If true, messages for an ongoing event will be shown in the intel UI even if
they don't meet the "last week/month/cycle" criteria.
|
boolean |
showLatestMessageIfOngoing() |
void |
startEvent()
Called when the event starts.
|
boolean |
useEventNameAsId() |
java.lang.String getId()
void init(java.lang.String eventType, CampaignEventTarget eventTarget)
eventType
- eventTarget
- void cleanup()
void setProbability(float p)
p
- void startEvent()
void advance(float amount)
boolean isDone()
CampaignEventTarget getEventTarget()
java.lang.String getEventType()
java.util.Map<java.lang.String,java.lang.String> getTokenReplacements()
java.lang.String[] getHighlights(java.lang.String stageId)
stageId
- java.awt.Color[] getHighlightColors(java.lang.String stageId)
stageId
- java.lang.String getStageIdForPossible()
MessagePriority getWarningWhenPossiblePriority()
java.lang.String getStageIdForLikely()
MessagePriority getWarningWhenLikelyPriority()
void setParam(java.lang.Object param)
param
- @Deprecated boolean allowMultipleOngoingForSameTarget()
java.lang.String getEventName()
boolean useEventNameAsId()
CampaignEventPlugin.CampaignEventCategory getEventCategory()
java.util.List<java.lang.String> getRelatedCommodities()
java.util.List<CampaignEventPlugin.PriceUpdatePlugin> getPriceUpdates()
java.lang.String getCurrentMessageIcon()
java.lang.String getCurrentImage()
java.lang.String getEventIcon()
boolean showAllMessagesIfOngoing()
boolean callEvent(java.lang.String ruleId, InteractionDialogAPI dialog, java.util.List<Misc.Token> params, java.util.Map<java.lang.String,MemoryAPI> memoryMap)
callEvent
in interface CallEvent.CallableEvent
memoryMap
- params
- MemoryAPI getMemory()
boolean showLatestMessageIfOngoing()
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.