Class TradeInfoUpdateEvent
java.lang.Object
com.fs.starfarer.api.impl.campaign.events.BaseEventPlugin
com.fs.starfarer.api.impl.campaign.events.TradeInfoUpdateEvent
- All Implemented Interfaces:
CampaignEventListener
,CampaignEventPlugin
,CallEvent.CallableEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fs.starfarer.api.impl.campaign.events.BaseEventPlugin
BaseEventPlugin.MarketFilter
Nested classes/interfaces inherited from interface com.fs.starfarer.api.campaign.CampaignEventListener
CampaignEventListener.FleetDespawnReason
Nested classes/interfaces inherited from interface com.fs.starfarer.api.campaign.events.CampaignEventPlugin
CampaignEventPlugin.CampaignEventCategory, CampaignEventPlugin.PriceUpdatePlugin
-
Field Summary
FieldsFields inherited from class com.fs.starfarer.api.impl.campaign.events.BaseEventPlugin
entity, eventTarget, eventType, faction, market, memory, started, startProbability, statModId
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount) Color[]
getHighlightColors
(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.String[]
getHighlights
(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.protected void
getLocalUpdates
(MarketAPI market) Token values for filling out descriptions from reports.csv.void
init
(String type, CampaignEventTarget eventTarget) Called when the EventProbability for this event is accessed.boolean
isDone()
void
reportPlayerClosedMarket
(MarketAPI market) void
reportPlayerOpenedMarket
(MarketAPI market) boolean
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.void
Called when the event starts.Methods inherited from class com.fs.starfarer.api.impl.campaign.events.BaseEventPlugin
addFactionNameTokens, addPersonTokens, addTokensToList, allowMultipleOngoingForSameTarget, callEvent, cleanup, findMatchingMarkets, findNearestMarket, getCurrentImage, getCurrentMessageIcon, getDefaultPriority, getEventIcon, getEventType, getId, getLoggingId, getMemory, getStageIdForLikely, getStageIdForPossible, getStatModId, getTargetName, getWarningWhenLikelyPriority, getWarningWhenPossiblePriority, increaseRecentUnrest, init, isEventStarted, reportBattleFinished, reportBattleOccurred, reportEconomyMonthEnd, reportEconomyTick, reportEncounterLootGenerated, reportFleetDespawned, reportFleetJumped, reportFleetReachedEntity, reportFleetSpawned, reportPlayerActivatedAbility, reportPlayerDeactivatedAbility, reportPlayerDidNotTakeCargo, reportPlayerDumpedCargo, reportPlayerEngagement, reportPlayerMarketTransaction, reportPlayerOpenedMarketAndCargoUpdated, reportPlayerReputationChange, reportPlayerReputationChange, reportShownInteractionDialog, setParam, setProbability, setTarget, showLatestMessageIfOngoing, startEvent, useEventNameAsId
-
Field Details
-
TIMEOUT
public static final float TIMEOUT- See Also:
-
log
public static org.apache.log4j.Logger log
-
-
Constructor Details
-
TradeInfoUpdateEvent
public TradeInfoUpdateEvent()
-
-
Method Details
-
init
Description copied from interface:CampaignEventPlugin
Called when the EventProbability for this event is accessed. Doesn't mean the event will actually happen.- Specified by:
init
in interfaceCampaignEventPlugin
- Overrides:
init
in classBaseEventPlugin
-
startEvent
public void startEvent()Description copied from interface:CampaignEventPlugin
Called when the event starts.- Specified by:
startEvent
in interfaceCampaignEventPlugin
- Overrides:
startEvent
in classBaseEventPlugin
-
advance
public void advance(float amount) - Specified by:
advance
in interfaceCampaignEventPlugin
- Overrides:
advance
in classBaseEventPlugin
-
reportPlayerOpenedMarket
- Specified by:
reportPlayerOpenedMarket
in interfaceCampaignEventListener
- Overrides:
reportPlayerOpenedMarket
in classBaseEventPlugin
-
reportPlayerClosedMarket
- Specified by:
reportPlayerClosedMarket
in interfaceCampaignEventListener
- Overrides:
reportPlayerClosedMarket
in classBaseEventPlugin
-
getLocalUpdates
-
getPriceUpdates
- Specified by:
getPriceUpdates
in interfaceCampaignEventPlugin
- Overrides:
getPriceUpdates
in classBaseEventPlugin
-
getRelatedCommodities
- Specified by:
getRelatedCommodities
in interfaceCampaignEventPlugin
- Overrides:
getRelatedCommodities
in classBaseEventPlugin
-
getTokenReplacements
Description copied from interface:CampaignEventPlugin
Token values for filling out descriptions from reports.csv.- Specified by:
getTokenReplacements
in interfaceCampaignEventPlugin
- Overrides:
getTokenReplacements
in classBaseEventPlugin
- Returns:
-
getHighlights
Description copied from interface:CampaignEventPlugin
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.- Specified by:
getHighlights
in interfaceCampaignEventPlugin
- Overrides:
getHighlights
in classBaseEventPlugin
- Returns:
-
getHighlightColors
Description copied from interface:CampaignEventPlugin
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.- Specified by:
getHighlightColors
in interfaceCampaignEventPlugin
- Overrides:
getHighlightColors
in classBaseEventPlugin
- Returns:
-
getEventTarget
- Specified by:
getEventTarget
in interfaceCampaignEventPlugin
- Overrides:
getEventTarget
in classBaseEventPlugin
-
isDone
public boolean isDone()- Specified by:
isDone
in interfaceCampaignEventPlugin
- Overrides:
isDone
in classBaseEventPlugin
-
getEventName
- Specified by:
getEventName
in interfaceCampaignEventPlugin
- Overrides:
getEventName
in classBaseEventPlugin
-
getEventCategory
- Specified by:
getEventCategory
in interfaceCampaignEventPlugin
- Overrides:
getEventCategory
in classBaseEventPlugin
-
showAllMessagesIfOngoing
public boolean showAllMessagesIfOngoing()Description copied from interface:CampaignEventPlugin
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.- Specified by:
showAllMessagesIfOngoing
in interfaceCampaignEventPlugin
- Overrides:
showAllMessagesIfOngoing
in classBaseEventPlugin
- Returns:
-