Class Activerse
java.lang.Object
ActiverseEngine.Activerse
Provides utility methods to start and stop the Activerse application.
This class contains static methods to manage the application lifecycle.
- Version:
- 1.4.2
- Author:
- Knivier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JFramegetFrame()The main window, or null before the UI is created on the EDT.static voidSets the world to the inputted world.static voidFull process teardown: save, stop simulation, release thread pools, close the window, exit JVM.static voidStarts the Activerse application with the specified world.static voidStops the Activerse application by stopping the specified world.
-
Constructor Details
-
Activerse
public Activerse()
-
-
Method Details
-
getFrame
The main window, or null before the UI is created on the EDT. -
start
Starts the Activerse application with the specified world.- Parameters:
world- The world to start the application with.- Throws:
IllegalArgumentException- if the world is null.
-
setWorld
Sets the world to the inputted world.- Parameters:
world- The new world to be set.- Throws:
IllegalArgumentException- if the world is null.
-
stop
Stops the Activerse application by stopping the specified world.- Parameters:
world- The world to stop.
-
shutdownApplication
public static void shutdownApplication()Full process teardown: save, stop simulation, release thread pools, close the window, exit JVM. May be called from the EDT, the game-loop thread, or elsewhere; work always runs on a dedicated thread so this never joins the current thread (avoids deadlock).
-