java.lang.Object
dev.aurumbyte.sypherengine.components.scene.Scene
- Direct Known Subclasses:
GameManager
The base scene class, used throughout...
- Since:
- v0.3.0
- Author:
- AurumByte
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetting the scene's camera.Getting the scene's name.abstract void
init
(SypherEngine engine) The abstract initialization method, to be overridden by the userabstract void
render
(SypherEngine engine) The abstract render method, to be overridden by the uservoid
Setting the scene's camera.void
setSceneName
(String sceneName) Setting a new name for a sceneabstract void
update
(float deltaTime) The abstract update method, to be overridden by the user
-
Field Details
-
Constructor Details
-
Scene
public Scene()
-
-
Method Details
-
init
The abstract initialization method, to be overridden by the user
- Parameters:
engine
- The main engine, used for initializing the game- Since:
- 0.3.0
-
update
public abstract void update(float deltaTime) The abstract update method, to be overridden by the user
- Parameters:
deltaTime
- The deltaTime of the game, kinda useless as the update rates are fixed, but nice to have just in case- Since:
- 0.3.0
-
render
The abstract render method, to be overridden by the user
- Parameters:
engine
- The main engine, used for rendering purposes the game- Since:
- 0.3.0
-
getSceneName
Getting the scene's name.
- Since:
- 0.3.0
-
setSceneName
Setting a new name for a scene
- Parameters:
sceneName
- The new scene name- Since:
- 0.3.0
-
getCamera
Getting the scene's camera.
- Since:
- 0.3.0
-
setCamera
Setting the scene's camera.
- Parameters:
camera
- The new scene camera.- Since:
- 0.3.0
-