Package mindustry.logic
Class LExecutor
java.lang.Object
mindustry.logic.LExecutor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static 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 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
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
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]
arc.struct.LongSeq
arc.struct.IntSet
mindustry.gen.Building[]
static final int
static final int
static final int
static final int
protected arc.struct.ObjectIntMap<String>
boolean
protected static arc.struct.IntFloatMap
LVar[]
Non-constant variables used for network syncboolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
createMarker
(int id, MapObjectives.ObjectiveMarker marker) 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, boolean effect) optionalVar
(int index) optionalVar
(String name) static void
removeMarker
(int id) void
runOnce()
Runs a single instruction.static void
static void
setMapArea
(int x, int y, int w, int h) static void
syncVariable
(mindustry.gen.Building building, int variable, Object value) static void
updateMarker
(int id, LMarkerControl control, double p1, double p2, double p3) static void
updateMarkerText
(int id, LMarkerControl type, boolean fetch, String text) static void
updateMarkerTexture
(int id, String textureName)
-
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
-
vars
Non-constant variables used for network sync -
counter
-
unit
-
thisv
-
ipt
-
binds
public int[] binds -
yield
public boolean yield -
graphicsBuffer
public arc.struct.LongSeq graphicsBuffer -
textBuffer
-
links
public mindustry.gen.Building[] links -
build
-
linkIds
public arc.struct.IntSet linkIds -
team
-
privileged
public boolean privileged -
unitTimeouts
protected static arc.struct.IntFloatMap unitTimeouts -
nameMap
-
-
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. -
optionalVar
-
optionalVar
- 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
-
setFlag
-
createMarker
-
removeMarker
public static void removeMarker(int id) -
updateMarker
-
updateMarkerText
-
updateMarkerTexture
-