Package mindustry.logic
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
A statement is an intermediate representation of an instruction, to be used mostly in UI.
Contains all relevant variable information.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
abstract void
abstract LExecutor.LInstruction
build
(LAssembler builder) category()
copy()
boolean
hidden()
name()
boolean
If true, this statement is considered useless with privileged processors and is not allowed in them.protected void
boolean
Privileged instructions are only allowed in world processors.protected void
protected String
void
saveUI()
void
setupUI()
protected <T> void
showSelect
(Button b, T[] values, T current, Cons<T> getter) protected <T> void
showSelect
(Button b, T[] values, T current, Cons<T> getter, int cols, Cons<Cell> sizer) protected void
showSelectTable
(Button b, Cons2<Table, Runnable> hideCons) void
write
(StringBuilder builder)
-
Field Details
-
elem
-
-
Constructor Details
-
LStatement
public LStatement()
-
-
Method Details
-
build
-
build
-
category
-
copy
-
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
-
sanitize
-
field
-
fields
-
fields
-
row
-
showSelect
-
showSelect
-
showSelectTable
-
afterRead
public void afterRead() -
write
-
setupUI
public void setupUI() -
saveUI
public void saveUI() -
name
-