Class DelayedFleetEncounter

All Implemented Interfaces:
IntelInfoPlugin, GateTransitListener, EveryFrameScript, CommRelayEntityPlugin.CommSnifferReadableIntel, HubMission, CallEvent.CallableEvent

public class DelayedFleetEncounter extends HubMissionWithTriggers implements GateTransitListener
  • Field Details

    • TRIGGER_REP_LOSS_MINOR

      public static String TRIGGER_REP_LOSS_MINOR
    • TRIGGER_REP_LOSS_MEDIUM

      public static String TRIGGER_REP_LOSS_MEDIUM
    • TRIGGER_REP_LOSS_HIGH

      public static String TRIGGER_REP_LOSS_HIGH
    • RADIUS_FROM_CORE

      public static float RADIUS_FROM_CORE
    • BASE_DAYS_IN_SYSTEM_BEFORE_AMBUSH_IN_HYPER

      public static float BASE_DAYS_IN_SYSTEM_BEFORE_AMBUSH_IN_HYPER
    • BASE_DAYS_IN_SYSTEM_BEFORE_IN_SYSTEM_ATTACK

      public static float BASE_DAYS_IN_SYSTEM_BEFORE_IN_SYSTEM_ATTACK
    • BASE_TIMEOUT

      public static float BASE_TIMEOUT
    • BASE_DELAY_VERY_SHORT

      public static float BASE_DELAY_VERY_SHORT
    • BASE_DELAY_SHORT

      public static float BASE_DELAY_SHORT
    • BASE_DELAY_MEDIUM

      public static float BASE_DELAY_MEDIUM
    • BASE_DELAY_LONG

      public static float BASE_DELAY_LONG
    • BASE_ONLY_CHECK_IN_SYSTEM_DAYS

      public static float BASE_ONLY_CHECK_IN_SYSTEM_DAYS
    • TIMEOUT_KEY

      public static String TIMEOUT_KEY
    • minDelay

      protected float minDelay
    • maxDelay

      protected float maxDelay
    • onlyCheckForSpawnInSystemDays

      protected float onlyCheckForSpawnInSystemDays
    • globalEndFlag

      protected String globalEndFlag
    • allowedTypes

      protected List<DelayedFleetEncounter.EncounterType> allowedTypes
    • allowedLocations

      protected List<DelayedFleetEncounter.EncounterLocation> allowedLocations
    • allowInsidePopulatedSystems

      protected boolean allowInsidePopulatedSystems
    • requireLargestMarketNotHostileToFaction

      protected String requireLargestMarketNotHostileToFaction
    • requiredFactionPresence

      protected List<String> requiredFactionPresence
    • requiredTags

    • canBeAvoidedByGateTransit

      protected boolean canBeAvoidedByGateTransit
    • madeGateTransit

      protected boolean madeGateTransit
    • initialTransitFrom

      protected LocationAPI initialTransitFrom
    • checker

    • waitDays

      protected float waitDays
    • personForRepLoss

      protected PersonAPI personForRepLoss
    • fleetSize

      protected HubMissionWithTriggers.FleetSize fleetSize
    • estimatedFleetPoints

      protected float estimatedFleetPoints
    • playerFleetSizeAbortMult

      protected float playerFleetSizeAbortMult
  • Constructor Details

    • DelayedFleetEncounter

      public DelayedFleetEncounter(Random random, String missionId)
  • Method Details

    • getRandomValue

      public static float getRandomValue(float base)
    • isInTimeout

      public static boolean isInTimeout()
    • setTimeout

      public static void setTimeout()
    • setCanNotBeAvoidedByGateTransit

      public void setCanNotBeAvoidedByGateTransit()
    • reportFleetTransitingGate

      public void reportFleetTransitingGate(CampaignFleetAPI fleet, SectorEntityToken gateFrom, SectorEntityToken gateTo)
      Description copied from interface: GateTransitListener
      gateFrom may be null. Called at the start of the transition.
      Specified by:
      reportFleetTransitingGate in interface GateTransitListener
    • notifyEnding

      protected void notifyEnding()
      Overrides:
      notifyEnding in class BaseIntelPlugin
    • setAllowInsidePopulatedSystems

      public void setAllowInsidePopulatedSystems(boolean allowInsidePopulatedSystems)
    • setRequireLargestMarketNotHostileToFaction

      public void setRequireLargestMarketNotHostileToFaction(String requireLargestMarketNotHostileToFaction)
    • setRequireFactionPresence

      public void setRequireFactionPresence(String... factions)
    • clearDFESystemTagRequirements

      public void clearDFESystemTagRequirements()
    • requireDFESystemTags

      public void requireDFESystemTags(ReqMode mode, String... tags)
    • setEncounterInHyper

      public void setEncounterInHyper()
    • setEncounterOutsideSystem

      public void setEncounterOutsideSystem()
    • setEncounterInSystemFromJumpPoint

      public void setEncounterInSystemFromJumpPoint()
    • setEncounterFromSomewhereInSystem

      public void setEncounterFromSomewhereInSystem()
    • setEncounterInHyperEnRoute

      public void setEncounterInHyperEnRoute()
    • setTypes

      public void setTypes(DelayedFleetEncounter.EncounterType... types)
    • setLocations

      public void setLocations(boolean allowInsidePopulatedSystems, String requireLargestMarketNotHostileToFaction, DelayedFleetEncounter.EncounterLocation... locations)
    • setDelay

      public void setDelay(float minDays, float maxDays)
    • setDelay

      public void setDelay(float base)
    • setLocationAnyPopulated

      public void setLocationAnyPopulated(boolean allowInsidePopulatedSystems, String requireLargestMarketNotHostileToFaction)
    • setLocationCoreOnly

      public void setLocationCoreOnly(boolean allowInsidePopulatedSystems, String requireLargestMarketNotHostileToFaction)
    • setLocationOuterSector

      public void setLocationOuterSector(boolean allowInsidePopulatedSystems, String requireLargestMarketNotHostileToFaction)
    • setLocationAnywhere

      public void setLocationAnywhere(boolean allowInsidePopulatedSystems, String requireLargestMarketNotHostileToFaction)
    • setLocationFringeOnly

      public void setLocationFringeOnly(boolean allowInsidePopulatedSystems, String requireLargestMarketNotHostileToFaction)
    • setLocationInnerSector

      public void setLocationInnerSector(boolean allowInsidePopulatedSystems, String requireLargestMarketNotHostileToFaction)
    • setDelayNone

      public void setDelayNone()
    • setDelayVeryShort

      public void setDelayVeryShort()
    • setDelayShort

      public void setDelayShort()
    • setDelayMedium

      public void setDelayMedium()
    • setDelayLong

      public void setDelayLong()
    • triggerSetStandardAggroInterceptFlags

      public void triggerSetStandardAggroInterceptFlags()
    • advanceImpl

      protected void advanceImpl(float amount)
      Overrides:
      advanceImpl in class BaseHubMission
    • beginCreate

      public void beginCreate()
    • endCreate

      public void endCreate()
    • triggerSetAdjustStrengthBasedOnQuality

      public void triggerSetAdjustStrengthBasedOnQuality(boolean randomize, float quality)
    • setFleetWantsThing

      public void setFleetWantsThing(String originalFactionId, String thing, String thingItOrThey, String thingDesc, int paymentOffered, boolean aggressiveIfDeclined, HubMissionWithTriggers.ComplicationRepImpact repImpact, String failTrigger, PersonAPI personForRepLoss)
    • setAlwaysAbort

      public void setAlwaysAbort()
    • setDoNotAbortWhenPlayerFleetTooStrong

      public void setDoNotAbortWhenPlayerFleetTooStrong()
    • setPlayerFleetSizeAbortMult

      public void setPlayerFleetSizeAbortMult(float playerFleetSizeAbortMult)
    • computeThresholdPoints

      protected void computeThresholdPoints(String factionId)
    • triggerFleetSetFaction

      public void triggerFleetSetFaction(String factionId)
    • triggerCreateFleet

      public void triggerCreateFleet(HubMissionWithTriggers.FleetSize size, HubMissionWithTriggers.FleetQuality quality, String factionId, String type, SectorEntityToken roughlyWhere)
      Overrides:
      triggerCreateFleet in class HubMissionWithTriggers
    • triggerCreateFleet

      public void triggerCreateFleet(HubMissionWithTriggers.FleetSize size, HubMissionWithTriggers.FleetQuality quality, String factionId, String type, StarSystemAPI roughlyWhere)
      Overrides:
      triggerCreateFleet in class HubMissionWithTriggers
    • triggerCreateFleet

      public void triggerCreateFleet(HubMissionWithTriggers.FleetSize size, HubMissionWithTriggers.FleetQuality quality, String factionId, String type, org.lwjgl.util.vector.Vector2f locInHyper)
      Overrides:
      triggerCreateFleet in class HubMissionWithTriggers
    • create

      protected boolean create(MarketAPI createdAt, boolean barEvent)
      Specified by:
      create in class BaseHubMission
    • getBaseName

      public String getBaseName()
      Overrides:
      getBaseName in class BaseHubMission
    • isHidden

      public boolean isHidden()
      Description copied from interface: IntelInfoPlugin
      Whether to actually show this piece of intel in the intel screen/show messages or updates for it, despite it being technically known to the player. Something can have "reportMadeVisibleToPlayer" called on it but still be hidden.
      Specified by:
      isHidden in interface IntelInfoPlugin
      Overrides:
      isHidden in class BaseIntelPlugin
      Returns:
    • callAction

      protected boolean callAction(String action, String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String,MemoryAPI> memoryMap)
      Overrides:
      callAction in class BaseHubMission