Class RecentUnrestEvent
java.lang.Object
com.fs.starfarer.api.impl.campaign.events.BaseEventPlugin
com.fs.starfarer.api.impl.campaign.events.RecentUnrestEvent
- 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) int
void
increaseStabilityPenalty
(int penalty) void
init
(String type, CampaignEventTarget eventTarget) Called when the EventProbability for this event is accessed.boolean
isDone()
void
reduceStabilityPenalty
(int penalty) void
setStabilityPenalty
(int stabilityPenalty) 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, getEventCategory, getEventIcon, getEventTarget, getEventType, getHighlightColors, getHighlights, getId, getLoggingId, getMemory, getPriceUpdates, getRelatedCommodities, getStageIdForLikely, getStageIdForPossible, getStatModId, getTargetName, getTokenReplacements, getWarningWhenLikelyPriority, getWarningWhenPossiblePriority, increaseRecentUnrest, init, isEventStarted, reportBattleFinished, reportBattleOccurred, reportEconomyMonthEnd, reportEconomyTick, reportEncounterLootGenerated, reportFleetDespawned, reportFleetJumped, reportFleetReachedEntity, reportFleetSpawned, reportPlayerActivatedAbility, reportPlayerClosedMarket, reportPlayerDeactivatedAbility, reportPlayerDidNotTakeCargo, reportPlayerDumpedCargo, reportPlayerEngagement, reportPlayerMarketTransaction, reportPlayerOpenedMarket, reportPlayerOpenedMarketAndCargoUpdated, reportPlayerReputationChange, reportPlayerReputationChange, reportShownInteractionDialog, setParam, setProbability, setTarget, showAllMessagesIfOngoing, showLatestMessageIfOngoing, startEvent, useEventNameAsId
-
Field Details
-
DAYS_PER_STAGE
public static final float DAYS_PER_STAGE- See Also:
-
-
Constructor Details
-
RecentUnrestEvent
public RecentUnrestEvent()
-
-
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
-
isDone
public boolean isDone()- Specified by:
isDone
in interfaceCampaignEventPlugin
- Overrides:
isDone
in classBaseEventPlugin
-
getStabilityPenalty
public int getStabilityPenalty() -
setStabilityPenalty
public void setStabilityPenalty(int stabilityPenalty) -
increaseStabilityPenalty
public void increaseStabilityPenalty(int penalty) -
reduceStabilityPenalty
public void reduceStabilityPenalty(int penalty) -
getEventName
- Specified by:
getEventName
in interfaceCampaignEventPlugin
- Overrides:
getEventName
in classBaseEventPlugin
-