GraphicWorldpublic class DummyClientWorld extends Object implements GraphicWorld
| Constructor | Description |
|---|---|
DummyClientWorld() |
| 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.
|
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.
|
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.
|
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(Color color) |
Set the scene ambient light.
|
void |
setDebugMode() |
Activate the debug mode on this world.
|
void |
setSkybox(Skybox sky) |
Build a sky box.
|
createMovableText, createStaticDoodadpublic GraphicObject createMovableDoodad(be.yildizgames.common.shape.Box box, Material material)
GraphicWorldcreateMovableDoodad in interface GraphicWorldbox - Box to use as graphic resource.material - The material to set.public GraphicObject createMovableDoodad(be.yildizgames.common.shape.Sphere sphere, Material material)
GraphicWorldcreateMovableDoodad in interface GraphicWorldsphere - Sphere to use as graphic resource.material - The material to set.public GraphicObject createMovableDoodad(be.yildizgames.common.shape.Plane plane, Material material)
GraphicWorldcreateMovableDoodad in interface GraphicWorldplane - Plane to use as graphic resource.material - The material to set.public GraphicObject createMovableDoodad(GraphicMesh mesh)
GraphicWorldcreateMovableDoodad in interface GraphicWorldmesh - Mesh to use as graphic resource.public GraphicObject createStaticDoodad(be.yildizgames.common.shape.Box box, Material material, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
GraphicWorldcreateStaticDoodad in interface GraphicWorldbox - 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.public GraphicObject createStaticDoodad(be.yildizgames.common.shape.Plane plane, Material material, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
GraphicWorldcreateStaticDoodad in interface GraphicWorldplane - 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.public GraphicObject createStaticDoodad(be.yildizgames.common.shape.Sphere sphere, Material material, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
GraphicWorldcreateStaticDoodad in interface GraphicWorldsphere - 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.public GraphicObject createStaticDoodad(be.yildizgames.common.shape.Sphere sphere, Material material, be.yildizgames.common.geometry.Point3D position)
GraphicWorldcreateStaticDoodad in interface GraphicWorldsphere - Sphere to use as graphic resource.material - The material to set.position - Object immutable position, InvalidParamException is thrown in case of null parameter.public GraphicObject createStaticDoodad(GraphicMesh mesh, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
GraphicWorldcreateStaticDoodad in interface GraphicWorldmesh - 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.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)
GraphicWorldcreateStaticObject in interface GraphicWorldid - 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.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)
GraphicWorldcreateStaticObject in interface GraphicWorldid - 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.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)
GraphicWorldcreateStaticObject in interface GraphicWorldid - 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.public GraphicObject createStaticObject(be.yildizgames.common.model.EntityId id, GraphicMesh shape, be.yildizgames.common.geometry.Point3D position)
GraphicWorldcreateStaticObject in interface GraphicWorldid - 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.public GraphicObject createMovableObject(be.yildizgames.common.model.EntityId id, be.yildizgames.common.shape.Box box, Material material, be.yildizgames.common.geometry.Point3D position)
GraphicWorldcreateMovableObject in interface GraphicWorldid - 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.public GraphicObject createMovableObject(be.yildizgames.common.model.EntityId id, be.yildizgames.common.shape.Plane plane, Material material, be.yildizgames.common.geometry.Point3D position)
createMovableObject in interface GraphicWorldpublic GraphicObject createMovableObject(be.yildizgames.common.model.EntityId id, be.yildizgames.common.shape.Sphere sphere, Material material, be.yildizgames.common.geometry.Point3D position)
GraphicWorldcreateMovableObject in interface GraphicWorldid - 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.public GraphicObject createMovableObject(be.yildizgames.common.model.EntityId id, GraphicMesh shape, be.yildizgames.common.geometry.Point3D position)
GraphicWorldcreateMovableObject in interface GraphicWorldid - id to retrieve when object is selected.shape - A container for a graphic mesh.position - Initial object position.public Camera createCamera(String name)
GraphicWorldcreateCamera in interface GraphicWorldname - Camera name, must be unique.public void setSkybox(Skybox sky)
GraphicWorldsetSkybox in interface GraphicWorldsky - The material to use.public void setDebugMode()
GraphicWorldsetDebugMode in interface GraphicWorldpublic void setAmbientLight(Color color)
GraphicWorldsetAmbientLight in interface GraphicWorldcolor - Light color.public PointLight createPointLight(String name, be.yildizgames.common.geometry.Point3D position)
GraphicWorldcreatePointLight in interface GraphicWorldname - Name of the light, must be unique.position - Light position.public ElectricArc createElectricArc(be.yildizgames.common.geometry.Point3D origin, be.yildizgames.common.geometry.Point3D end, float width)
GraphicWorldcreateElectricArc in interface GraphicWorldorigin - Electric arc origin position.end - Electric arc end position.width - Elements width.public Explosion createExplosion()
GraphicWorldcreateExplosion in interface GraphicWorldpublic ParticleSystem createParticleSystem()
GraphicWorldcreateParticleSystem in interface GraphicWorldpublic Sky createSky()
GraphicWorldcreateSky in interface GraphicWorldpublic Ocean createOcean()
GraphicWorldcreateOcean in interface GraphicWorldpublic Camera getDefaultCamera()
getDefaultCamera in interface GraphicWorldpublic Line create3DLine()
GraphicWorldcreate3DLine in interface GraphicWorldpublic LensFlare createLensFlare(LensFlare.LensFlareMaterial mat, be.yildizgames.common.geometry.Point3D position)
GraphicWorldcreateLensFlare in interface GraphicWorldmat - Lensflare materials.position - Lens flare origin position.public SpotLight createSpotLight(String name, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
GraphicWorldcreateSpotLight in interface GraphicWorldname - Light name, must be unique.position - Spot position.direction - Spot direction.public DirectionalLight createDirectionalLight(String name, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
GraphicWorldcreateDirectionalLight in interface GraphicWorldname - Light name, must be unique.position - Light position.direction - Light direction.public void serializeShapeFromMesh(String mesh, String file, String name)
GraphicWorldserializeShapeFromMesh in interface GraphicWorldmesh - Mesh to use to get the vertices data.file - File to save.name - Associated name.public boolean isDebug()
isDebug in interface GraphicWorldtrue if the world is in debug mode.public void deleteLight(Light light)
GraphicWorlddeleteLight in interface GraphicWorldlight - Light to delete.public Camera getCamera(String name)
GraphicWorldgetCamera in interface GraphicWorldname - Unique camera name.public Light getLight(String name)
GraphicWorldgetLight in interface GraphicWorldname - Unique light name.public void deleteLight(String name)
GraphicWorlddeleteLight in interface GraphicWorldname - Name of the light to delete.public MovableText createMovableText(String name, String text, Font font)
GraphicWorldcreateMovableText in interface GraphicWorldname - Object unique name.text - Text to display.font - Font to use.public BillboardSet createBillboardSet(Material material)
GraphicWorldcreateBillboardSet in interface GraphicWorldmaterial - Material to use.public GraphicObject createStaticObject(be.yildizgames.common.model.EntityId id, GraphicMesh mesh, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
createStaticObject in interface GraphicWorldCopyright © 2014–2018. All rights reserved.