Package mindustry.logic
Class LExecutor
java.lang.Object
mindustry.logic.LExecutor
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Controls a building's state.static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static interface
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
Binds the processor to a unit based on some filters.static class
Controls the unit based on some parameters.static class
Uses a unit to find something that may not be in its range.static class
A logic variable.static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionint[]
int
mindustry.gen.Building[]
static final int
static final int
static final int
static final int
boolean
protected IntFloatMap
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
bool
(int index) mindustry.gen.Building
building
(int index) boolean
void
load
(LAssembler builder) Loads with a specified assembler.static void
logicExplosion
(Team team, float x, float y, float radius, float damage, boolean air, boolean ground, boolean pierce) double
num
(int index) float
numf
(int index) int
numi
(int index) obj
(int index) optionalVar
(int index) void
runOnce()
Runs a single instruction.void
setbool
(int index, boolean value) void
static void
static void
setMapArea
(int x, int y, int w, int h) void
setnum
(int index, double value) void
static void
syncVariable
(mindustry.gen.Building building, int variable, Object value) team
(int index) var
(int index)
-
Field Details
-
maxInstructions
public static final int maxInstructions- See Also:
-
varCounter
public static final int varCounter- See Also:
-
varUnit
public static final int varUnit- See Also:
-
varThis
public static final int varThis- 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
-
vars
-
counter
-
binds
public int[] binds -
iptIndex
public int iptIndex -
graphicsBuffer
-
textBuffer
-
links
public mindustry.gen.Building[] links -
build
-
linkIds
-
team
-
privileged
public boolean privileged -
unitTimeouts
-
-
Constructor Details
-
LExecutor
public LExecutor()
-
-
Method Details
-
initialized
public boolean initialized() -
runOnce
public void runOnce()Runs a single instruction. -
load
Loads with a specified assembler. Resets all variables. -
var
-
optionalVar
- Returns:
- a Var from this processor, never a global constant. May be null if out of bounds.
-
building
-
obj
-
team
-
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
-
setconst
-
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
-
setFlag
-