Class Scene


  • public class Scene
    extends Object
    Class that represent a scene/level in the game
    Author:
    Darius Dinger
    • Constructor Detail

      • Scene

        public Scene()
        Initialize root GameObject
    • 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