Package de.coreengine.system
Class Scene
- java.lang.Object
-
- de.coreengine.system.Scene
-
public class Scene extends Object
Class that represent a scene/level in the game- Author:
- Darius Dinger
-
-
Constructor Summary
Constructors Constructor Description Scene()
Initialize root GameObject
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGameObject(GameObject gameObject)
Adding new game object to the root game objectcom.bulletphysics.dynamics.DynamicsWorld
getPhysicWorld()
Getting the physical collision world of this scene.void
pauseUpdate()
Pause updating scenevoid
removeGameObject(GameObject gameObject)
Removing game object from the root game objectvoid
render()
Rendering scenevoid
syncronize()
Syncronize scene with networkvoid
update()
Updating scene
-
-
-
Method Detail
-
syncronize
public void syncronize()
Syncronize scene with network
-
update
public void update()
Updating scene
-
pauseUpdate
public void pauseUpdate()
Pause updating scene
-
render
public void render()
Rendering scene
-
addGameObject
public final void addGameObject(GameObject gameObject)
Adding new game object to the root game object- Parameters:
gameObject
- Game object to add
-
removeGameObject
public void removeGameObject(GameObject gameObject)
Removing game object from the root game object- Parameters:
gameObject
- Game object to remove
-
getPhysicWorld
public com.bulletphysics.dynamics.DynamicsWorld getPhysicWorld()
Getting the physical collision world of this scene. Here rigidbodys and vehicles can be added or the gravity can be changed.- Returns:
- Dynamics physics world of the scene
-
-