Package buildengine

Class BuildEngine

java.lang.Object
buildengine.BuildEngine

public class BuildEngine extends Object
Main static class for the engine
  • Field Details

    • VERSION

      public static final String VERSION
      Version: [major].[minor][extra]
      See Also:
    • BUILD

      public static final String BUILD
      Build: [month].[year].[build]
      See Also:
    • stable

      public static final boolean stable
      Stable build
      See Also:
    • COLOR

      public static final Color COLOR
      Default foreground color
    • BACKGROUND_COLOR

      public static final Color BACKGROUND_COLOR
      Default background color
    • FONT

      public static final Font FONT
      Default font
  • Method Details

    • welcome

      public static String welcome()
      Returns:
      A string containing info about the current build
    • create

      public static Engine create(String windowTitle, Dimension resolution, boolean borderless, boolean vSync)
      Creates a new instance of Engine and starts it. Deploys a warning if on an unstable build.
      Parameters:
      windowTitle - The title of the display
      resolution - The resolution of the display, in pixels. Use Display.RESOLUTION.
      borderless - Start display borderless
      vSync - Enable vSync
      Returns:
      The created engine
      Throws:
      IllegalStateException - If there already is another instance of Engine running.
    • destroy

      public static void destroy()
      Safely destroys the current engine instance
    • getEngine

      public static Engine getEngine()
      Returns:
      The current Engine instance