Package mindustry.async
Class PhysicsProcess
java.lang.Object
mindustry.async.PhysicsProcess
- All Implemented Interfaces:
AsyncProcess
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mindustry.async.AsyncProcess
end, process
-
Field Details
-
layers
public static final int layers- See Also:
-
layerGround
public static final int layerGround- See Also:
-
layerLegs
public static final int layerLegs- See Also:
-
layerFlying
public static final int layerFlying- See Also:
-
layerUnderwater
public static final int layerUnderwater- See Also:
-
-
Constructor Details
-
PhysicsProcess
public PhysicsProcess()
-
-
Method Details
-
add
public void add(mindustry.gen.Unit unit) -
begin
public void begin()Description copied from interface:AsyncProcessSync. Called at the beginning of the main loop.- Specified by:
beginin interfaceAsyncProcess
-
shouldProcess
public boolean shouldProcess()- Specified by:
shouldProcessin interfaceAsyncProcess
-
reset
public void reset()Description copied from interface:AsyncProcessSync. Called when the world resets.- Specified by:
resetin interfaceAsyncProcess
-
init
public void init()Description copied from interface:AsyncProcessSync. Called when the world loads.- Specified by:
initin interfaceAsyncProcess
-