Class DummyClientWorld

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Line create3DLine()
      Create a simple line.
      BillboardSet createBillboardSet​(Material material)
      Create a billboard set.
      Camera createCamera​(String name)
      Create a new camera with default behavior(freefly).
      DirectionalLight createDirectionalLight​(String name, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
      Create a light of type directional light.
      ElectricArc createElectricArc​(be.yildizgames.common.geometry.Point3D origin, be.yildizgames.common.geometry.Point3D end, float width)
      Create an electric arc effect.
      Explosion createExplosion()
      Create an explosion effect.
      GroundQuery createGroundQuery​(RayProvider provider)  
      LensFlare createLensFlare​(LensFlare.LensFlareMaterial mat, be.yildizgames.common.geometry.Point3D position)
      Create a new lens flare.
      GraphicObject createMovableDoodad​(be.yildizgames.common.shape.Box box, Material material)
      Create a movable graphic box, it has no Id, is not selectable and will not be affected in any way by physics.
      GraphicObject createMovableDoodad​(be.yildizgames.common.shape.Plane plane, Material material)
      Create a movable graphic plane, it has no Id, is not selectable and will not be affected in any way by physics.
      GraphicObject createMovableDoodad​(be.yildizgames.common.shape.Sphere sphere, Material material)
      Create a movable graphic sphere, it has no Id, is not selectable and will not be affected in any way by physics.
      GraphicObject createMovableDoodad​(GraphicMesh mesh)
      Create a movable graphic object, it has no Id, is not selectable and will not be affected in any way by physics.
      GraphicObject createMovableObject​(be.yildizgames.common.model.EntityId id, be.yildizgames.common.shape.Box box, Material material, be.yildizgames.common.geometry.Point3D position)
      Create a movable graphic physic box, it has a given Id, is selectable and will not be affected in any way by physics dynamic, but is collidable.
      GraphicObject createMovableObject​(be.yildizgames.common.model.EntityId id, be.yildizgames.common.shape.Plane plane, Material material, be.yildizgames.common.geometry.Point3D position)  
      GraphicObject createMovableObject​(be.yildizgames.common.model.EntityId id, be.yildizgames.common.shape.Sphere sphere, Material material, be.yildizgames.common.geometry.Point3D position)
      Create a movable graphic physic sphere, it has a given Id, is selectable and will not be affected in any way by physics dynamic, but is collidable.
      GraphicObject createMovableObject​(be.yildizgames.common.model.EntityId id, GraphicMesh shape, be.yildizgames.common.geometry.Point3D position)
      Create a movable graphic object, it has a given Id, is selectable and will not be affected in any way by physics dynamic, and is not collidable.
      MovableText createMovableText​(String name, String text, Font font)
      Create a HUD text that will be displayed next an entity.
      Ocean createOcean()
      Create an ocean environment.
      ParticleSystem createParticleSystem()
      Create a particle system.
      PointLight createPointLight​(String name, be.yildizgames.common.geometry.Point3D position)
      Create a new light of type point.
      Query createQuery​(RayProvider provider)  
      Sky createSky()
      Create a sky environment.
      SpotLight createSpotLight​(String name, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
      Create a light of type spot light.
      GraphicObject createStaticDoodad​(be.yildizgames.common.shape.Box box, Material material, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
      Create a static graphic box, it has no Id, is not selectable, cannot move, and will not be affected in any way by physics.
      GraphicObject createStaticDoodad​(be.yildizgames.common.shape.Plane plane, Material material, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
      Create a static graphic plane, it has no Id, is not selectable, cannot move, and will not be affected in any way by physics.
      GraphicObject createStaticDoodad​(be.yildizgames.common.shape.Sphere sphere, Material material, be.yildizgames.common.geometry.Point3D position)
      Create a static graphic sphere, it has no Id, is not selectable, cannot move, the direction is the base direction and will not be affected in any way by physics.
      GraphicObject createStaticDoodad​(be.yildizgames.common.shape.Sphere sphere, Material material, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
      Create a static graphic sphere, it has no Id, is not selectable, cannot move, and will not be affected in any way by physics.
      GraphicObject createStaticDoodad​(GraphicMesh mesh, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
      Create a static graphic object, it has no Id, is not selectable, cannot move, and will not be affected in any way by physics.
      GraphicObject createStaticObject​(be.yildizgames.common.model.EntityId id, be.yildizgames.common.shape.Box box, Material material, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
      Create a static graphic physic box, it has a given Id, is selectable, cannot move, and will not be affected in any way by physics dynamic, but is collidable.
      GraphicObject createStaticObject​(be.yildizgames.common.model.EntityId id, be.yildizgames.common.shape.Plane plane, Material material, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
      Create a static graphic physic plane, it has a given Id, is selectable, cannot move, and will not be affected in any way by physics dynamic, but is collidable.
      GraphicObject createStaticObject​(be.yildizgames.common.model.EntityId id, be.yildizgames.common.shape.Sphere sphere, Material material, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
      Create a static graphic physic sphere, it has a given Id, is selectable, cannot move, and will not be affected in any way by physics dynamic, but is collidable.
      GraphicObject createStaticObject​(be.yildizgames.common.model.EntityId id, GraphicMesh shape, be.yildizgames.common.geometry.Point3D position)
      Create a static graphic physic object, the physic object is a primitive instead of a mesh, to improve performances, it has a given Id, is selectable, cannot move, and will not be affected in any way by physics .
      GraphicObject createStaticObject​(be.yildizgames.common.model.EntityId id, GraphicMesh mesh, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)  
      void deleteLight​(Light light)
      Delete a light.
      void deleteLight​(String name)
      Unregister and delete a light.
      Camera getCamera​(String name)
      Retrieve a Camera from its unique name.
      Camera getDefaultCamera()  
      Light getLight​(String name)
      Retrieve a Light from its unique name.
      String getName()  
      boolean isDebug()  
      void serializeShapeFromMesh​(String mesh, String file, String name)
      Create a physic serialized shape from a graphic mesh and save it in a file.
      void setAmbientLight​(be.yildizgames.module.color.Color color)
      Set the scene ambient light.
      void setDebugMode()
      Activate the debug mode on this world.
      void setSkybox​(Skybox sky)
      Build a sky box.
    • Constructor Detail

      • DummyClientWorld

        public DummyClientWorld()
    • Method Detail

      • createMovableDoodad

        public GraphicObject createMovableDoodad​(be.yildizgames.common.shape.Box box,
                                                 Material material)
        Description copied from interface: GraphicWorld
        Create a movable graphic box, it has no Id, is not selectable and will not be affected in any way by physics. It is usually used to represent not selectable object like small animals, unreachable background objects...
        Specified by:
        createMovableDoodad in interface GraphicWorld
        Parameters:
        box - Box to use as graphic resource.
        material - The material to set.
        Returns:
        The built object.
      • createMovableDoodad

        public GraphicObject createMovableDoodad​(be.yildizgames.common.shape.Sphere sphere,
                                                 Material material)
        Description copied from interface: GraphicWorld
        Create a movable graphic sphere, it has no Id, is not selectable and will not be affected in any way by physics. It is usually used to represent not selectable object like small animals, unreachable background objects...
        Specified by:
        createMovableDoodad in interface GraphicWorld
        Parameters:
        sphere - Sphere to use as graphic resource.
        material - The material to set.
        Returns:
        The built object.
      • createMovableDoodad

        public GraphicObject createMovableDoodad​(be.yildizgames.common.shape.Plane plane,
                                                 Material material)
        Description copied from interface: GraphicWorld
        Create a movable graphic plane, it has no Id, is not selectable and will not be affected in any way by physics. It is usually used to represent not selectable object like small animals, unreachable background objects...
        Specified by:
        createMovableDoodad in interface GraphicWorld
        Parameters:
        plane - Plane to use as graphic resource.
        material - The material to set.
        Returns:
        The built object.
      • createMovableDoodad

        public GraphicObject createMovableDoodad​(GraphicMesh mesh)
        Description copied from interface: GraphicWorld
        Create a movable graphic object, it has no Id, is not selectable and will not be affected in any way by physics. It is usually used to represent not selectable object like small animals, unreachable background objects...
        Specified by:
        createMovableDoodad in interface GraphicWorld
        Parameters:
        mesh - Mesh to use as graphic resource.
        Returns:
        The built object.
      • createStaticDoodad

        public GraphicObject createStaticDoodad​(be.yildizgames.common.shape.Box box,
                                                Material material,
                                                be.yildizgames.common.geometry.Point3D position,
                                                be.yildizgames.common.geometry.Point3D direction)
        Description copied from interface: GraphicWorld
        Create a static graphic box, it has no Id, is not selectable, cannot move, and will not be affected in any way by physics. It is usually used to represent unselectable object like small vegetation, small rocks...
        Specified by:
        createStaticDoodad in interface GraphicWorld
        Parameters:
        box - Box to use as graphic resource.
        material - The material to set.
        position - Object immutable position, InvalidParamException is thrown in case of null parameter.
        direction - Object immutable direction, InvalidParamException is thrown in case of null parameter.
        Returns:
        The built object.
      • createStaticDoodad

        public GraphicObject createStaticDoodad​(be.yildizgames.common.shape.Plane plane,
                                                Material material,
                                                be.yildizgames.common.geometry.Point3D position,
                                                be.yildizgames.common.geometry.Point3D direction)
        Description copied from interface: GraphicWorld
        Create a static graphic plane, it has no Id, is not selectable, cannot move, and will not be affected in any way by physics. It is usually used to represent unselectable object like small vegetation, small rocks...
        Specified by:
        createStaticDoodad in interface GraphicWorld
        Parameters:
        plane - Plane to use as graphic resource.
        material - The material to set.
        position - Object immutable position, InvalidParamException is thrown in case of null parameter.
        direction - Object immutable direction, InvalidParamException is thrown in case of null parameter.
        Returns:
        The built object.
      • createStaticDoodad

        public GraphicObject createStaticDoodad​(be.yildizgames.common.shape.Sphere sphere,
                                                Material material,
                                                be.yildizgames.common.geometry.Point3D position,
                                                be.yildizgames.common.geometry.Point3D direction)
        Description copied from interface: GraphicWorld
        Create a static graphic sphere, it has no Id, is not selectable, cannot move, and will not be affected in any way by physics. It is usually used to represent unselectable object like small vegetation, small rocks...
        Specified by:
        createStaticDoodad in interface GraphicWorld
        Parameters:
        sphere - Sphere to use as graphic resource.
        material - The material to set.
        position - Object immutable position, InvalidParamException is thrown in case of null parameter.
        direction - Object immutable direction, InvalidParamException is thrown in case of null parameter.
        Returns:
        The built object.
      • createStaticDoodad

        public GraphicObject createStaticDoodad​(be.yildizgames.common.shape.Sphere sphere,
                                                Material material,
                                                be.yildizgames.common.geometry.Point3D position)
        Description copied from interface: GraphicWorld
        Create a static graphic sphere, it has no Id, is not selectable, cannot move, the direction is the base direction and will not be affected in any way by physics. It is usually used to represent unselectable object like small vegetation, small rocks...
        Specified by:
        createStaticDoodad in interface GraphicWorld
        Parameters:
        sphere - Sphere to use as graphic resource.
        material - The material to set.
        position - Object immutable position, InvalidParamException is thrown in case of null parameter.
        Returns:
        The built object.
      • createStaticDoodad

        public GraphicObject createStaticDoodad​(GraphicMesh mesh,
                                                be.yildizgames.common.geometry.Point3D position,
                                                be.yildizgames.common.geometry.Point3D direction)
        Description copied from interface: GraphicWorld
        Create a static graphic object, it has no Id, is not selectable, cannot move, and will not be affected in any way by physics. It is usually used to represent unselectable object like small vegetation, small rocks...
        Specified by:
        createStaticDoodad in interface GraphicWorld
        Parameters:
        mesh - Mesh to use as graphic resource.
        position - Object immutable position, InvalidParamException is thrown in case of null parameter.
        direction - Object immutable direction, InvalidParamException is thrown in case of null parameter.
        Returns:
        The built object.
      • createStaticObject

        public GraphicObject createStaticObject​(be.yildizgames.common.model.EntityId id,
                                                be.yildizgames.common.shape.Box box,
                                                Material material,
                                                be.yildizgames.common.geometry.Point3D position,
                                                be.yildizgames.common.geometry.Point3D direction)
        Description copied from interface: GraphicWorld
        Create a static graphic physic box, it has a given Id, is selectable, cannot move, and will not be affected in any way by physics dynamic, but is collidable. It is usually used to represent selectable or collidable object like buildings, trees...
        Specified by:
        createStaticObject in interface GraphicWorld
        Parameters:
        id - id to retrieve when object is selected, has collisions...
        box - Box to use as graphic and physic resource.
        material - The material to set.
        position - Object immutable position, InvalidParamException is thrown in case of null parameter.
        direction - Object immutable direction, InvalidParamException is thrown in case of null parameter.
        Returns:
        The built object.
      • createStaticObject

        public GraphicObject createStaticObject​(be.yildizgames.common.model.EntityId id,
                                                be.yildizgames.common.shape.Sphere sphere,
                                                Material material,
                                                be.yildizgames.common.geometry.Point3D position,
                                                be.yildizgames.common.geometry.Point3D direction)
        Description copied from interface: GraphicWorld
        Create a static graphic physic sphere, it has a given Id, is selectable, cannot move, and will not be affected in any way by physics dynamic, but is collidable. It is usually used to represent selectable or collidable object like buildings, trees...
        Specified by:
        createStaticObject in interface GraphicWorld
        Parameters:
        id - id to retrieve when object is selected, has collisions...
        sphere - Sphere to use as graphic and physic resource.
        material - The material to set.
        position - Object immutable position, InvalidParamException is thrown in case of null parameter.
        direction - Object immutable direction, InvalidParamException is thrown in case of null parameter.
        Returns:
        The built object.
      • createStaticObject

        public GraphicObject createStaticObject​(be.yildizgames.common.model.EntityId id,
                                                be.yildizgames.common.shape.Plane plane,
                                                Material material,
                                                be.yildizgames.common.geometry.Point3D position,
                                                be.yildizgames.common.geometry.Point3D direction)
        Description copied from interface: GraphicWorld
        Create a static graphic physic plane, it has a given Id, is selectable, cannot move, and will not be affected in any way by physics dynamic, but is collidable. It is usually used to represent selectable or collidable object like buildings, trees...
        Specified by:
        createStaticObject in interface GraphicWorld
        Parameters:
        id - id to retrieve when object is selected, has collisions...
        plane - Plane to use as graphic resource.
        material - The material to set.
        position - Object immutable position, InvalidParamException is thrown in case of null parameter.
        direction - Object immutable direction, InvalidParamException is thrown in case of null parameter.
        Returns:
        The built object.
      • createStaticObject

        public GraphicObject createStaticObject​(be.yildizgames.common.model.EntityId id,
                                                GraphicMesh shape,
                                                be.yildizgames.common.geometry.Point3D position)
        Description copied from interface: GraphicWorld
        Create a static graphic physic object, the physic object is a primitive instead of a mesh, to improve performances, it has a given Id, is selectable, cannot move, and will not be affected in any way by physics . It is usually used to represent selectable object like buildings, trees...
        Specified by:
        createStaticObject in interface GraphicWorld
        Parameters:
        id - id to retrieve when object is selected, has collisions...
        shape - Shape to use as graphic and physic resource, physic shape is a primitive instead of a mesh to improve performance.
        position - Object immutable position, InvalidParamException is thrown in case of null parameter.
        Returns:
        The built object.
      • createMovableObject

        public GraphicObject createMovableObject​(be.yildizgames.common.model.EntityId id,
                                                 be.yildizgames.common.shape.Box box,
                                                 Material material,
                                                 be.yildizgames.common.geometry.Point3D position)
        Description copied from interface: GraphicWorld
        Create a movable graphic physic box, it has a given Id, is selectable and will not be affected in any way by physics dynamic, but is collidable. It is usually used to represent playable or movable object like characters, vehicles...
        Specified by:
        createMovableObject in interface GraphicWorld
        Parameters:
        id - id to retrieve when object is selected, has collisions...
        box - Box to use as graphic and physic resource.
        material - The material to set.
        position - Initial object position.
        Returns:
        The built object.
      • createMovableObject

        public GraphicObject createMovableObject​(be.yildizgames.common.model.EntityId id,
                                                 be.yildizgames.common.shape.Plane plane,
                                                 Material material,
                                                 be.yildizgames.common.geometry.Point3D position)
        Specified by:
        createMovableObject in interface GraphicWorld
      • createMovableObject

        public GraphicObject createMovableObject​(be.yildizgames.common.model.EntityId id,
                                                 be.yildizgames.common.shape.Sphere sphere,
                                                 Material material,
                                                 be.yildizgames.common.geometry.Point3D position)
        Description copied from interface: GraphicWorld
        Create a movable graphic physic sphere, it has a given Id, is selectable and will not be affected in any way by physics dynamic, but is collidable. It is usually used to represent playable or movable object like characters, vehicles...
        Specified by:
        createMovableObject in interface GraphicWorld
        Parameters:
        id - id to retrieve when object is selected, has collisions...
        sphere - Sphere to use as graphic and physic resource.
        material - The material to set.
        position - Initial object position.
        Returns:
        The built object.
      • createMovableObject

        public GraphicObject createMovableObject​(be.yildizgames.common.model.EntityId id,
                                                 GraphicMesh shape,
                                                 be.yildizgames.common.geometry.Point3D position)
        Description copied from interface: GraphicWorld
        Create a movable graphic object, it has a given Id, is selectable and will not be affected in any way by physics dynamic, and is not collidable. It is usually used to represent playable or movable object like characters, vehicles...
        Specified by:
        createMovableObject in interface GraphicWorld
        Parameters:
        id - id to retrieve when object is selected.
        shape - A container for a graphic mesh.
        position - Initial object position.
        Returns:
        The built object.
      • createCamera

        public Camera createCamera​(String name)
        Description copied from interface: GraphicWorld
        Create a new camera with default behavior(freefly).
        Specified by:
        createCamera in interface GraphicWorld
        Parameters:
        name - Camera name, must be unique.
        Returns:
        The newly built camera.
      • setSkybox

        public void setSkybox​(Skybox sky)
        Description copied from interface: GraphicWorld
        Build a sky box.
        Specified by:
        setSkybox in interface GraphicWorld
        Parameters:
        sky - The material to use.
      • setDebugMode

        public void setDebugMode()
        Description copied from interface: GraphicWorld
        Activate the debug mode on this world.
        Specified by:
        setDebugMode in interface GraphicWorld
      • setAmbientLight

        public void setAmbientLight​(be.yildizgames.module.color.Color color)
        Description copied from interface: GraphicWorld
        Set the scene ambient light.
        Specified by:
        setAmbientLight in interface GraphicWorld
        Parameters:
        color - Light color.
      • createPointLight

        public PointLight createPointLight​(String name,
                                           be.yildizgames.common.geometry.Point3D position)
        Description copied from interface: GraphicWorld
        Create a new light of type point.
        Specified by:
        createPointLight in interface GraphicWorld
        Parameters:
        name - Name of the light, must be unique.
        position - Light position.
        Returns:
        The newly built light.
      • createElectricArc

        public ElectricArc createElectricArc​(be.yildizgames.common.geometry.Point3D origin,
                                             be.yildizgames.common.geometry.Point3D end,
                                             float width)
        Description copied from interface: GraphicWorld
        Create an electric arc effect.
        Specified by:
        createElectricArc in interface GraphicWorld
        Parameters:
        origin - Electric arc origin position.
        end - Electric arc end position.
        width - Elements width.
        Returns:
        The created ElectricArc.
      • createSky

        public Sky createSky()
        Description copied from interface: GraphicWorld
        Create a sky environment.
        Specified by:
        createSky in interface GraphicWorld
        Returns:
        The created Sky.
      • createOcean

        public Ocean createOcean()
        Description copied from interface: GraphicWorld
        Create an ocean environment.
        Specified by:
        createOcean in interface GraphicWorld
        Returns:
        The created Ocean.
      • createLensFlare

        public LensFlare createLensFlare​(LensFlare.LensFlareMaterial mat,
                                         be.yildizgames.common.geometry.Point3D position)
        Description copied from interface: GraphicWorld
        Create a new lens flare.
        Specified by:
        createLensFlare in interface GraphicWorld
        Parameters:
        mat - Lensflare materials.
        position - Lens flare origin position.
        Returns:
        The created LensFlare.
      • createSpotLight

        public SpotLight createSpotLight​(String name,
                                         be.yildizgames.common.geometry.Point3D position,
                                         be.yildizgames.common.geometry.Point3D direction)
        Description copied from interface: GraphicWorld
        Create a light of type spot light.
        Specified by:
        createSpotLight in interface GraphicWorld
        Parameters:
        name - Light name, must be unique.
        position - Spot position.
        direction - Spot direction.
        Returns:
        The created light.
      • createDirectionalLight

        public DirectionalLight createDirectionalLight​(String name,
                                                       be.yildizgames.common.geometry.Point3D position,
                                                       be.yildizgames.common.geometry.Point3D direction)
        Description copied from interface: GraphicWorld
        Create a light of type directional light.
        Specified by:
        createDirectionalLight in interface GraphicWorld
        Parameters:
        name - Light name, must be unique.
        position - Light position.
        direction - Light direction.
        Returns:
        The created light.
      • serializeShapeFromMesh

        public void serializeShapeFromMesh​(String mesh,
                                           String file,
                                           String name)
        Description copied from interface: GraphicWorld
        Create a physic serialized shape from a graphic mesh and save it in a file.
        Specified by:
        serializeShapeFromMesh in interface GraphicWorld
        Parameters:
        mesh - Mesh to use to get the vertices data.
        file - File to save.
        name - Associated name.
      • isDebug

        public boolean isDebug()
        Specified by:
        isDebug in interface GraphicWorld
        Returns:
        true if the world is in debug mode.
      • deleteLight

        public void deleteLight​(Light light)
        Description copied from interface: GraphicWorld
        Delete a light.
        Specified by:
        deleteLight in interface GraphicWorld
        Parameters:
        light - Light to delete.
      • getCamera

        public Camera getCamera​(String name)
        Description copied from interface: GraphicWorld
        Retrieve a Camera from its unique name.
        Specified by:
        getCamera in interface GraphicWorld
        Parameters:
        name - Unique camera name.
        Returns:
        Found camera.
      • getLight

        public Light getLight​(String name)
        Description copied from interface: GraphicWorld
        Retrieve a Light from its unique name.
        Specified by:
        getLight in interface GraphicWorld
        Parameters:
        name - Unique light name.
        Returns:
        Found light.
      • deleteLight

        public void deleteLight​(String name)
        Description copied from interface: GraphicWorld
        Unregister and delete a light.
        Specified by:
        deleteLight in interface GraphicWorld
        Parameters:
        name - Name of the light to delete.
      • createMovableText

        public MovableText createMovableText​(String name,
                                             String text,
                                             Font font)
        Description copied from interface: GraphicWorld
        Create a HUD text that will be displayed next an entity.
        Specified by:
        createMovableText in interface GraphicWorld
        Parameters:
        name - Object unique name.
        text - Text to display.
        font - Font to use.
        Returns:
        The created movable text.
      • createStaticObject

        public GraphicObject createStaticObject​(be.yildizgames.common.model.EntityId id,
                                                GraphicMesh mesh,
                                                be.yildizgames.common.geometry.Point3D position,
                                                be.yildizgames.common.geometry.Point3D direction)
        Specified by:
        createStaticObject in interface GraphicWorld