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 SummaryConstructors Constructor Description Scene()Initialize root GameObject
 - 
Method SummaryAll 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- 
syncronizepublic void syncronize() Syncronize scene with network
 - 
updatepublic void update() Updating scene
 - 
pauseUpdatepublic void pauseUpdate() Pause updating scene
 - 
renderpublic void render() Rendering scene
 - 
addGameObjectpublic final void addGameObject(GameObject gameObject) Adding new game object to the root game object- Parameters:
- gameObject- Game object to add
 
 - 
removeGameObjectpublic void removeGameObject(GameObject gameObject) Removing game object from the root game object- Parameters:
- gameObject- Game object to remove
 
 - 
getPhysicWorldpublic 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
 
 
- 
 
-