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 voidaddGameObject(GameObject gameObject)Adding new game object to the root game objectcom.bulletphysics.dynamics.DynamicsWorldgetPhysicWorld()Getting the physical collision world of this scene.voidpauseUpdate()Pause updating scenevoidremoveGameObject(GameObject gameObject)Removing game object from the root game objectvoidrender()Rendering scenevoidsyncronize()Syncronize scene with networkvoidupdate()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
-
-