Class SceneManager
Inheritance
java.lang.Object
SceneManager
Syntax
public class SceneManager
Constructors
SceneManager(GLFWWindow prnt)
Declaration
public SceneManager(GLFWWindow prnt)
Parameters
Methods
addScene(Scene scene)
Declaration
public void addScene(Scene scene)
Parameters
Type |
Name |
Description |
Scene |
scene |
|
getCurrentScene()
Declaration
public Scene getCurrentScene()
Returns
getScene(String sceneName)
Declaration
public Scene getScene(String sceneName)
Parameters
Type |
Name |
Description |
String |
sceneName |
|
Returns
getScenes()
Declaration
public Map<String, Scene> getScenes()
Returns
Type |
Description |
Map<String, Scene> |
|
initScenes()
Declaration
Declaration
public void input(float delta)
Parameters
Type |
Name |
Description |
float |
delta |
|
isCurrentScene(Scene scene)
Declaration
public boolean isCurrentScene(Scene scene)
Parameters
Type |
Name |
Description |
Scene |
scene |
|
Returns
render()
Declaration
setCurrentScene(Scene currentScene)
Declaration
public void setCurrentScene(Scene currentScene)
Parameters
Type |
Name |
Description |
Scene |
currentScene |
|
setCurrentScene(String sceneName)
Declaration
public void setCurrentScene(String sceneName)
Parameters
Type |
Name |
Description |
String |
sceneName |
|
setScenes(Map<String, Scene> scenes)
Declaration
public void setScenes(Map<String, Scene> scenes)
Parameters
Type |
Name |
Description |
Map<String, Scene> |
scenes |
|
update(float delta)
Declaration
public void update(float delta)
Parameters
Type |
Name |
Description |
float |
delta |
|