Package de.coreengine.system
Class Game
- java.lang.Object
- 
- de.coreengine.system.Game
 
- 
 public class Game extends Object Class that manage the whole game- Author:
- Darius Dinger
 
- 
- 
Constructor SummaryConstructors Constructor Description Game()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidexit(int code)Exiting the game and dumping all reserved memorystatic ScenegetCurrentScene()static voidgotoScene(int id)Going to specific scenestatic voidinit(int windowWidth, int windowHeight, String windowTitle, Window.Type windowType, TextureData windowIcon)Initializing the game and all relevant librariesstatic booleanisPaused()static intregisterScene(Scene scene)Register scene in the gamestatic voidremoveScene(int id)static voidsetPaused(boolean paused)Set the game in paused state or the other way round.static voidtick()Updating inputs handlers, window and executing master renderers render call to render all stuff
 
- 
- 
- 
Method Detail- 
initpublic static void init(int windowWidth, int windowHeight, String windowTitle, Window.Type windowType, TextureData windowIcon)Initializing the game and all relevant libraries- Parameters:
- windowWidth- Initial width of the game window
- windowHeight- Initial height of the game window
- windowTitle- Initial title of the game window
- windowType- Initial window type
- windowIcon- Icon of the window, or null for no icon
 
 - 
registerScenepublic static int registerScene(Scene scene) Register scene in the game- Parameters:
- scene- Scene to register
- Returns:
- Id of the scene
 
 - 
removeScenepublic static void removeScene(int id) 
 - 
getCurrentScenepublic static Scene getCurrentScene() - Returns:
- Current scene or null if no scene set
 
 - 
gotoScenepublic static void gotoScene(int id) Going to specific scene- Parameters:
- id- Id of the scene to enter
 
 - 
tickpublic static void tick() Updating inputs handlers, window and executing master renderers render call to render all stuff
 - 
setPausedpublic static void setPaused(boolean paused) Set the game in paused state or the other way round.- Parameters:
- paused- Should game be paused
 
 - 
isPausedpublic static boolean isPaused() - Returns:
- Is the game currently paused.
 
 - 
exitpublic static void exit(int code) Exiting the game and dumping all reserved memory- Parameters:
- code- Exit code (0 == Success, else Errror)
 
 
- 
 
-