Package game

Class GUIControl

java.lang.Object
game.GUIControl

public class GUIControl extends Object
Methods for controlling the interaction between the main thread and the GUI, if a GUI is present.
  • Method Details

    • startAnimation

      public static void startAnimation(Maybe<GUI> gui)
      Register that an animation is starting on the GUI, if the GUI is present. It is the job of the GUI to stop the animation.
    • waitForAnimation

      public static void waitForAnimation(Maybe<GUI> gui)
      Wait until the GUI animation, if any, is complete.