public class NearbyEventsEvent extends BaseEventPlugin implements RouteManager.RouteFleetSpawner
| Modifier and Type | Class and Description |
|---|---|
static class |
NearbyEventsEvent.DistressEventType |
static class |
NearbyEventsEvent.NESpawnData |
BaseEventPlugin.MarketFilterCampaignEventPlugin.CampaignEventCategory, CampaignEventPlugin.PriceUpdatePluginCampaignEventListener.FleetDespawnReason| Modifier and Type | Field and Description |
|---|---|
static float |
DERELICT_SKIP_PROB |
static float |
DERELICT_SKIP_PROB_ABYSS |
protected IntervalUtil |
derelictShipInterval |
static float |
DISTRESS_ALREADY_WAS_NEARBY_TIMEOUT |
static float |
DISTRESS_MAX_CHECK_INTERVAL |
static float |
DISTRESS_MAX_PROB |
static float |
DISTRESS_MIN_CHECK_INTERVAL |
static float |
DISTRESS_MIN_SINCE_PLAYER_IN_SYSTEM |
static float |
DISTRESS_PROB_PER_SYSTEM |
static float |
DISTRESS_REPEAT_TIMEOUT |
static java.util.Set<java.lang.String> |
distressCallAllowedThemes |
protected IntervalUtil |
distressCallInterval |
protected TimeoutTracker<java.lang.String> |
skipForDistressCalls |
static boolean |
TEST_MODE |
entity, eventTarget, eventType, faction, market, memory, started, startProbability, statModId| Constructor and Description |
|---|
NearbyEventsEvent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustRep(float repChangePercent,
RepLevel limit,
FactionAPI faction,
PersonAPI person,
TextPanelAPI text) |
void |
advance(float amount) |
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).
|
protected void |
generateDistressCallAmbush(StarSystemAPI system) |
protected void |
generateDistressCallAmbushTrap(StarSystemAPI system) |
protected void |
generateDistressCallNormal(StarSystemAPI system) |
protected void |
generateDistressDerelictShip(StarSystemAPI system) |
CampaignEventPlugin.CampaignEventCategory |
getEventCategory() |
CampaignEventTarget |
getEventTarget() |
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.util.Map<java.lang.String,java.lang.String> |
getTokenReplacements()
Token values for filling out descriptions from reports.csv.
|
void |
init(java.lang.String type,
CampaignEventTarget eventTarget)
Called when the EventProbability for this event is accessed.
|
boolean |
isDone() |
static void |
main(java.lang.String[] args) |
protected void |
maybeSpawnDerelictShip() |
protected void |
maybeSpawnDistressCall() |
void |
reportAboutToBeDespawnedByRouteManager(RouteManager.RouteData route) |
boolean |
shouldCancelRouteAfterDelayCheck(RouteManager.RouteData route) |
boolean |
shouldRepeat(RouteManager.RouteData route) |
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.
|
CampaignFleetAPI |
spawnFleet(RouteManager.RouteData route) |
void |
startEvent()
Called when the event starts.
|
addFactionNameTokens, addPersonTokens, addTokensToList, allowMultipleOngoingForSameTarget, cleanup, findMatchingMarkets, findNearestMarket, getCurrentImage, getCurrentMessageIcon, getDefaultPriority, getEventIcon, getEventName, getEventType, getId, getLoggingId, getMemory, getPriceUpdates, getRelatedCommodities, getStageIdForLikely, getStageIdForPossible, getStatModId, getTargetName, 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, showLatestMessageIfOngoing, startEvent, useEventNameAsIdpublic static float DISTRESS_REPEAT_TIMEOUT
public static float DISTRESS_ALREADY_WAS_NEARBY_TIMEOUT
public static float DISTRESS_MIN_SINCE_PLAYER_IN_SYSTEM
public static float DISTRESS_MIN_CHECK_INTERVAL
public static float DISTRESS_MAX_CHECK_INTERVAL
public static float DISTRESS_PROB_PER_SYSTEM
public static float DISTRESS_MAX_PROB
public static float DERELICT_SKIP_PROB
public static float DERELICT_SKIP_PROB_ABYSS
protected IntervalUtil derelictShipInterval
protected IntervalUtil distressCallInterval
protected TimeoutTracker<java.lang.String> skipForDistressCalls
public static boolean TEST_MODE
public static java.util.Set<java.lang.String> distressCallAllowedThemes
public NearbyEventsEvent()
public void init(java.lang.String type, CampaignEventTarget eventTarget)
CampaignEventPlugininit in interface CampaignEventPlugininit in class BaseEventPluginpublic void startEvent()
CampaignEventPluginstartEvent in interface CampaignEventPluginstartEvent in class BaseEventPluginpublic void advance(float amount)
advance in interface CampaignEventPluginadvance in class BaseEventPluginprotected void maybeSpawnDerelictShip()
protected void maybeSpawnDistressCall()
protected void generateDistressDerelictShip(StarSystemAPI system)
protected void generateDistressCallAmbushTrap(StarSystemAPI system)
protected void generateDistressCallAmbush(StarSystemAPI system)
protected void generateDistressCallNormal(StarSystemAPI system)
public void reportAboutToBeDespawnedByRouteManager(RouteManager.RouteData route)
reportAboutToBeDespawnedByRouteManager in interface RouteManager.RouteFleetSpawnerpublic boolean shouldCancelRouteAfterDelayCheck(RouteManager.RouteData route)
shouldCancelRouteAfterDelayCheck in interface RouteManager.RouteFleetSpawnerpublic boolean shouldRepeat(RouteManager.RouteData route)
shouldRepeat in interface RouteManager.RouteFleetSpawnerpublic CampaignFleetAPI spawnFleet(RouteManager.RouteData route)
spawnFleet in interface RouteManager.RouteFleetSpawnerpublic boolean callEvent(java.lang.String ruleId, InteractionDialogAPI dialog, java.util.List<Misc.Token> params, java.util.Map<java.lang.String,MemoryAPI> memoryMap)
CampaignEventPlugincallEvent in interface CampaignEventPlugincallEvent in interface CallEvent.CallableEventcallEvent in class BaseEventPluginprotected void adjustRep(float repChangePercent, RepLevel limit, FactionAPI faction, PersonAPI person, TextPanelAPI text)
public java.util.Map<java.lang.String,java.lang.String> getTokenReplacements()
CampaignEventPlugingetTokenReplacements in interface CampaignEventPlugingetTokenReplacements in class BaseEventPluginpublic java.lang.String[] getHighlights(java.lang.String stageId)
CampaignEventPlugingetHighlights in interface CampaignEventPlugingetHighlights in class BaseEventPluginpublic java.awt.Color[] getHighlightColors(java.lang.String stageId)
CampaignEventPlugingetHighlightColors in interface CampaignEventPlugingetHighlightColors in class BaseEventPluginpublic CampaignEventTarget getEventTarget()
getEventTarget in interface CampaignEventPlugingetEventTarget in class BaseEventPluginpublic boolean isDone()
isDone in interface CampaignEventPluginisDone in class BaseEventPluginpublic CampaignEventPlugin.CampaignEventCategory getEventCategory()
getEventCategory in interface CampaignEventPlugingetEventCategory in class BaseEventPluginpublic boolean showAllMessagesIfOngoing()
CampaignEventPluginshowAllMessagesIfOngoing in interface CampaignEventPluginshowAllMessagesIfOngoing in class BaseEventPluginpublic static void main(java.lang.String[] args) throws java.text.ParseException
java.text.ParseException