Package mindustry.logic
Class LExecutor
java.lang.Object
mindustry.logic.LExecutor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classControls a building's state.static classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic interfacestatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classBinds the processor to a unit based on some filters.static classControls the unit based on some parameters.static classUses a unit to find something that may not be in its range.static classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionint[]arc.struct.LongSeqarc.struct.IntSetmindustry.gen.Building[]static final intstatic final intstatic intstatic final intprotected arc.struct.ObjectIntMap<String>booleanprotected static arc.struct.IntFloatMapLVar[]Non-constant variables used for network syncboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateMarker(int id, MapObjectives.ObjectiveMarker marker) booleanvoidload(LAssembler builder) Loads with a specified assembler.static voidlogicExplosion(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 voidremoveMarker(int id) voidrunOnce()Runs a single instruction.static voidstatic voidsetMapArea(int x, int y, int w, int h) static voidsyncVariable(mindustry.gen.Building building, int variable, Object value) static voidupdateMarker(int id, LMarkerControl control, double p1, double p2, double p3) static voidupdateMarkerText(int id, LMarkerControl type, boolean fetch, String text) static voidupdateMarkerTexture(int id, String textureName)
-
Field Details
-
maxInstructions
public static int maxInstructions -
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 -
nameMap
-
unitTimeouts
protected static arc.struct.IntFloatMap 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. -
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
-