Class LExecutor

java.lang.Object
mindustry.logic.LExecutor

public class LExecutor extends Object
  • Field Details

  • 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.
    • var

      public LExecutor.Var var(int index)
    • optionalVar

      @Nullable public LExecutor.Var optionalVar(int index)
      Returns:
      a Var from this processor, never a global constant. May be null if out of bounds.
    • building

      @Nullable public mindustry.gen.Building building(int index)
    • obj

      @Nullable public Object obj(int index)
    • team

      @Nullable public Team team(int index)
    • bool

      public boolean bool(int index)
    • num

      public double num(int index)
    • numf

      public float numf(int index)
    • numi

      public int numi(int index)
    • setbool

      public void setbool(int index, boolean value)
    • setnum

      public void setnum(int index, double value)
    • setobj

      public void setobj(int index, Object value)
    • setconst

      public void setconst(int index, Object value)
    • 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)
    • syncVariable

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

      public static void setFlag(String flag, boolean add)