Class LStatement

java.lang.Object
mindustry.logic.LStatement
Direct Known Subclasses:
LStatements.ApplyStatusStatement, LStatements.CommentStatement, LStatements.ControlStatement, LStatements.CutsceneStatement, LStatements.DrawFlushStatement, LStatements.DrawStatement, LStatements.EffectStatement, LStatements.EndStatement, LStatements.ExplosionStatement, LStatements.FetchStatement, LStatements.FlushMessageStatement, LStatements.GetBlockStatement, LStatements.GetFlagStatement, LStatements.GetLinkStatement, LStatements.InvalidStatement, LStatements.JumpStatement, LStatements.LookupStatement, LStatements.OperationStatement, LStatements.PackColorStatement, LStatements.PrintFlushStatement, LStatements.PrintStatement, LStatements.RadarStatement, LStatements.ReadStatement, LStatements.SensorStatement, LStatements.SetBlockStatement, LStatements.SetFlagStatement, LStatements.SetPropStatement, LStatements.SetRateStatement, LStatements.SetRuleStatement, LStatements.SetStatement, LStatements.SpawnUnitStatement, LStatements.SpawnWaveStatement, LStatements.StopStatement, LStatements.SyncStatement, LStatements.UnitBindStatement, LStatements.UnitControlStatement, LStatements.UnitLocateStatement, LStatements.WaitStatement, LStatements.WriteStatement

public abstract class LStatement extends Object
A statement is an intermediate representation of an instruction, to be used mostly in UI. Contains all relevant variable information.
  • Field Details

  • Constructor Details

    • LStatement

      public LStatement()
  • Method Details

    • build

      public abstract void build(Table table)
    • build

      public abstract LExecutor.LInstruction build(LAssembler builder)
    • category

      public LCategory category()
    • copy

      public LStatement copy()
    • hidden

      public boolean hidden()
    • privileged

      public boolean privileged()
      Privileged instructions are only allowed in world processors.
    • nonPrivileged

      public boolean nonPrivileged()
      If true, this statement is considered useless with privileged processors and is not allowed in them.
    • param

      protected void param(Cell<Label> label)
    • sanitize

      protected String sanitize(String value)
    • field

      protected Cell<TextField> field(Table table, String value, Cons<String> setter)
    • fields

      protected Cell<TextField> fields(Table table, String desc, String value, Cons<String> setter)
    • fields

      protected Cell<TextField> fields(Table table, String value, Cons<String> setter)
    • row

      protected void row(Table table)
    • showSelect

      protected <T> void showSelect(Button b, T[] values, T current, Cons<T> getter, int cols, Cons<Cell> sizer)
    • showSelect

      protected <T> void showSelect(Button b, T[] values, T current, Cons<T> getter)
    • showSelectTable

      protected void showSelectTable(Button b, Cons2<Table,Runnable> hideCons)
    • afterRead

      public void afterRead()
    • write

      public void write(StringBuilder builder)
    • setupUI

      public void setupUI()
    • saveUI

      public void saveUI()
    • name

      public String name()