Package mindustry.logic
Class LExecutor
java.lang.Object
mindustry.logic.LExecutor
- 
Nested Class SummaryNested 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 SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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- 
maxInstructionspublic static int maxInstructions
- 
maxGraphicsBufferpublic static final int maxGraphicsBuffer- See Also:
 
- 
maxDisplayBufferpublic static final int maxDisplayBuffer- See Also:
 
- 
maxTextBufferpublic static final int maxTextBuffer- See Also:
 
- 
instructions
- 
varsNon-constant variables used for network sync
- 
counter
- 
unit
- 
thisv
- 
ipt
- 
bindspublic int[] binds
- 
yieldpublic boolean yield
- 
graphicsBufferpublic arc.struct.LongSeq graphicsBuffer
- 
textBuffer
- 
linkspublic mindustry.gen.Building[] links
- 
build
- 
linkIdspublic arc.struct.IntSet linkIds
- 
team
- 
privilegedpublic boolean privileged
- 
nameMap
- 
unitTimeoutsprotected static arc.struct.IntFloatMap unitTimeouts
 
- 
- 
Constructor Details- 
LExecutorpublic LExecutor()
 
- 
- 
Method Details- 
initializedpublic boolean initialized()
- 
runOncepublic void runOnce()Runs a single instruction.
- 
loadLoads with a specified assembler. Resets all variables.
- 
optionalVar
- 
optionalVar- Returns:
- a Var from this processor. May be null if out of bounds.
 
- 
setMapAreapublic static void setMapArea(int x, int y, int w, int h) 
- 
logicExplosionpublic static void logicExplosion(Team team, float x, float y, float radius, float damage, boolean air, boolean ground, boolean pierce, boolean effect) 
- 
syncVariable
- 
setFlag
- 
createMarker
- 
removeMarkerpublic static void removeMarker(int id) 
- 
updateMarker
- 
updateMarkerText
- 
updateMarkerTexture
 
-