World - PendulumProject2020/PendulumProject GitHub Wiki

Version: 0.1.9+

public class World

This class belongs to the main package. This class belongs to the Methodological layer and the Tangible layer.

The World class is used to start the program. When this class is run, it will invoke the three steps of Piece Tree assembly via the PieceTreeCompiler. After that, it will invoke the begin() method, which calls the run() method of the root Piece, beginning the execution of the program beyond the Methodological layer. It can also be modified to launch the Piece Tree Display.

Field Summary

private static boolean userInteraction Used by other classes to decide whether the user can interact with the application.

Method Summary

public static void begin() Call the run() method of the root Piece. The Piece Tree compilation needs to be complete before this step.

Getters and Setters

public static boolean isUserInteraction()

public static void setUserInteraction(boolean userInteraction)