Class FleetAIFlags

java.lang.Object
com.fs.starfarer.api.campaign.ai.FleetAIFlags

public class FleetAIFlags extends Object
Variables set in memory that indicate certain decisions or behaviors of the AI. Used to communicate between otherwise-disconnected modules, such as ability AI and other fleet AI modules. Mods replacing parts of the fleet AI should try to use these if possible/appropriate. Mods replacing fleet AI entirely (i.e. all modules, and all ability AI) are free to either use these or devise their own system.
Author:
Alex Mosolov Copyright 2015 Fractal Softworks, LLC
  • Field Details

    • USE_EB_FOR_TRAVEL

      public static final String USE_EB_FOR_TRAVEL
      See Also:
    • PURSUIT_TARGET

      public static final String PURSUIT_TARGET
      SectorEntityToken, set if actively pursuing something.
      See Also:
    • NEAREST_FLEEING_FROM

      public static final String NEAREST_FLEEING_FROM
      SectorEntityToken, nearest enemy the AI is trying to avoid.
      See Also:
    • NEAREST_ENEMY

      public static final String NEAREST_ENEMY
      SectorEntityToken, nearest enemy. May or may not be trying to avoid.
      See Also:
    • TRAVEL_DEST

      public static final String TRAVEL_DEST
      Vector2f, Where it wants to go.
      See Also:
    • MOVE_DEST

      public static final String MOVE_DEST
      Vector2f, Where it's actually going (due to avoiding enemies/terrain/etc). Not set while orbiting.
      See Also:
    • WANTS_TRANSPONDER_ON

      public static final String WANTS_TRANSPONDER_ON
      Boolean, whether the AI wants to keep the transponder on.
      See Also:
    • DAYS_TARGET_UNSEEN

      public static final String DAYS_TARGET_UNSEEN
      Float, days spent pursuing a target that's no longer visible.
      See Also:
    • LAST_SEEN_TARGET_LOC

      public static final String LAST_SEEN_TARGET_LOC
      Vector2f, last location where the target was seen.
      See Also:
    • PLACE_TO_LOOK_FOR_TARGET

      public static final String PLACE_TO_LOOK_FOR_TARGET
      Does not get reset when the target changes. Used for an outside script to indicate where the fleet should start looking for a target it's trying to intercept.
      See Also:
    • SEEN_TARGET_JUMPING_FROM

      public static final String SEEN_TARGET_JUMPING_FROM
      See Also:
    • LAST_SEEN_TARGET_HEADING

      public static final String LAST_SEEN_TARGET_HEADING
      Float, direction the target was going when last seen.
      See Also:
    • HAS_SPEED_PENALTY

      public static final String HAS_SPEED_PENALTY
      Boolean, whether the fleet has an ability-induced speed penalty.
      See Also:
    • USED_INTERDICTION_PULSE

      public static final String USED_INTERDICTION_PULSE
      See Also:
    • HAS_VISION_PENALTY

      public static final String HAS_VISION_PENALTY
      See Also:
    • HAS_SPEED_BONUS

      public static final String HAS_SPEED_BONUS
      See Also:
    • HAS_VISION_BONUS

      public static final String HAS_VISION_BONUS
      See Also:
    • HAS_LOWER_DETECTABILITY

      public static final String HAS_LOWER_DETECTABILITY
      See Also:
    • HAS_HIGHER_DETECTABILITY

      public static final String HAS_HIGHER_DETECTABILITY
      See Also:
  • Constructor Details

    • FleetAIFlags

      public FleetAIFlags()