Class GameManager

java.lang.Object
org.collebol.game.GameManager
All Implemented Interfaces:
Runnable

public abstract class GameManager extends Object implements Runnable
Abstract class representing the game manager in the EJGEngine. This class is the core of the game side is responsible for managing the game loop and updating the game state and objects.

Usage:

     GameManager gameManager = new MyGameManager();
     gameManager.startGameThread(); //this will start the game
 
Since:
1.0-dev
Author:
ColleBol - contact@collebol.org
See Also:
  • Constructor Details

    • GameManager

      public GameManager()
  • Method Details

    • startGameThread

      public void startGameThread()
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • update

      public abstract void update()
    • getTicks

      public int getTicks()
    • setTicks

      public void setTicks(int ticks)
    • setGameRegister

      public void setGameRegister(GameRegister gameRegister)
    • getGameRegister

      public GameRegister getGameRegister()