Class LExecutor

java.lang.Object
mindustry.logic.LExecutor

public class LExecutor extends Object
  • Field Details

    • maxInstructions

      public static final int maxInstructions
      See Also:
    • maxGraphicsBuffer

      public static final int maxGraphicsBuffer
      See Also:
    • maxDisplayBuffer

      public static final int maxDisplayBuffer
      See Also:
    • maxTextBuffer

      public static final int maxTextBuffer
      See Also:
    • instructions

      public LExecutor.LInstruction[] instructions
    • vars

      public LVar[] vars
      Non-constant variables used for network sync
    • counter

      public LVar counter
    • unit

      public LVar unit
    • thisv

      public LVar thisv
    • ipt

      public LVar ipt
    • binds

      public int[] binds
    • yield

      public boolean yield
    • graphicsBuffer

      public arc.struct.LongSeq graphicsBuffer
    • textBuffer

      public StringBuilder textBuffer
    • build

      @Nullable public LogicBlock.LogicBuild build
    • linkIds

      public arc.struct.IntSet linkIds
    • team

      public Team team
    • privileged

      public boolean privileged
    • unitTimeouts

      protected static arc.struct.IntFloatMap unitTimeouts
    • nameMap

      @Nullable protected arc.struct.ObjectIntMap<String> nameMap
  • Constructor Details

    • LExecutor

      public LExecutor()
  • Method Details

    • initialized

      public boolean initialized()
    • runOnce

      public void runOnce()
      Runs a single instruction.
    • load

      public void load(LAssembler builder)
      Loads with a specified assembler. Resets all variables.
    • optionalVar

      @Nullable public LVar optionalVar(String name)
    • optionalVar

      @Nullable public LVar optionalVar(int index)
      Returns:
      a Var from this processor. May be null if out of bounds.
    • setMapArea

      public static void setMapArea(int x, int y, int w, int h)
    • logicExplosion

      public static void logicExplosion(Team team, float x, float y, float radius, float damage, boolean air, boolean ground, boolean pierce, boolean effect)
    • syncVariable

      public static void syncVariable(mindustry.gen.Building building, int variable, Object value)
    • setFlag

      public static void setFlag(String flag, boolean add)
    • createMarker

      public static void createMarker(int id, MapObjectives.ObjectiveMarker marker)
    • removeMarker

      public static void removeMarker(int id)
    • updateMarker

      public static void updateMarker(int id, LMarkerControl control, double p1, double p2, double p3)
    • updateMarkerText

      public static void updateMarkerText(int id, LMarkerControl type, boolean fetch, String text)
    • updateMarkerTexture

      public static void updateMarkerTexture(int id, String textureName)