Module SypherEngine

Class GameManager

java.lang.Object
dev.aurumbyte.sypherengine.components.scene.Scene
dev.aurumbyte.sypherengine.core.logic.GameManager

public abstract class GameManager extends Scene
  • Field Details

  • Constructor Details

    • GameManager

      public GameManager()
  • Method Details

    • gameInit

      public void gameInit(SypherEngine engine)
    • gameUpdate

      public void gameUpdate(float deltaTime)
    • gameRender

      public void gameRender(SypherEngine engine)
    • init

      public abstract void init(SypherEngine engine)
      Description copied from class: Scene

      The abstract initialization method, to be overridden by the user

      Specified by:
      init in class Scene
      Parameters:
      engine - The main engine, used for initializing the game
    • update

      public abstract void update(float deltaTime)
      Description copied from class: Scene

      The abstract update method, to be overridden by the user

      Specified by:
      update in class Scene
      Parameters:
      deltaTime - The deltaTime of the game, kinda useless as the update rates are fixed, but nice to have just in case
    • render

      public abstract void render(SypherEngine engine)
      Description copied from class: Scene

      The abstract render method, to be overridden by the user

      Specified by:
      render in class Scene
      Parameters:
      engine - The main engine, used for rendering purposes the game
    • setCurrentScene

      public void setCurrentScene(Scene currentScene)
    • getCurrentScene

      public Scene getCurrentScene()
    • addScene

      public void addScene(Scene scene)
    • addScenes

      public void addScenes(Scene... scenes)
    • addScenes

      public void addScenes(List<Scene> sceneList)
    • getScene

      public void getScene(String sceneName)
    • getKeyListener

      public static KeyListener getKeyListener()
    • getMouseListener

      public static MouseListener getMouseListener()