DummyClientWorldpublic interface GraphicWorld
| 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.
|
default MovableText |
createMovableText(String text,
Font font) |
|
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.
|
default GraphicObject |
createStaticDoodad(GraphicMesh mesh,
be.yildizgames.common.geometry.Point3D position) |
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 |
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.
|
GraphicObject createMovableDoodad(be.yildizgames.common.shape.Box box, Material material)
box - Box to use as graphic resource.material - The material to set.GraphicObject createMovableDoodad(be.yildizgames.common.shape.Sphere sphere, Material material)
sphere - Sphere to use as graphic resource.material - The material to set.GraphicObject createMovableDoodad(be.yildizgames.common.shape.Plane plane, Material material)
plane - Plane to use as graphic resource.material - The material to set.GraphicObject createMovableDoodad(GraphicMesh mesh)
mesh - Mesh to use as graphic resource.GraphicObject createStaticDoodad(be.yildizgames.common.shape.Box box, Material material, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
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.GraphicObject createStaticDoodad(be.yildizgames.common.shape.Plane plane, Material material, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
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.GraphicObject createStaticDoodad(be.yildizgames.common.shape.Sphere sphere, Material material, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
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.GraphicObject createStaticDoodad(be.yildizgames.common.shape.Sphere sphere, Material material, be.yildizgames.common.geometry.Point3D position)
sphere - Sphere to use as graphic resource.material - The material to set.position - Object immutable position, InvalidParamException is thrown in case of null parameter.default GraphicObject createStaticDoodad(GraphicMesh mesh, be.yildizgames.common.geometry.Point3D position)
mesh - Mesh to use as graphic resource.position - Object immutable position, InvalidParamException is thrown in case of null parameter.GraphicObject createStaticDoodad(GraphicMesh mesh, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
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.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)
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.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)
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.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)
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.GraphicObject createStaticObject(be.yildizgames.common.model.EntityId id, GraphicMesh shape, be.yildizgames.common.geometry.Point3D position)
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.GraphicObject createMovableObject(be.yildizgames.common.model.EntityId id, be.yildizgames.common.shape.Box box, Material material, be.yildizgames.common.geometry.Point3D position)
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.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)
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.GraphicObject createMovableObject(be.yildizgames.common.model.EntityId id, GraphicMesh shape, be.yildizgames.common.geometry.Point3D position)
id - id to retrieve when object is selected.shape - A container for a graphic mesh.position - Initial object position.Camera createCamera(String name)
name - Camera name, must be unique.void setSkybox(Skybox sky)
sky - The material to use.void setDebugMode()
void setAmbientLight(Color color)
color - Light color.PointLight createPointLight(String name, be.yildizgames.common.geometry.Point3D position)
name - Name of the light, must be unique.position - Light position.ElectricArc createElectricArc(be.yildizgames.common.geometry.Point3D origin, be.yildizgames.common.geometry.Point3D end, float width)
origin - Electric arc origin position.end - Electric arc end position.width - Elements width.Explosion createExplosion()
ParticleSystem createParticleSystem()
Sky createSky()
Ocean createOcean()
Camera getDefaultCamera()
Line create3DLine()
LensFlare createLensFlare(LensFlare.LensFlareMaterial mat, be.yildizgames.common.geometry.Point3D position)
mat - Lensflare materials.position - Lens flare origin position.SpotLight createSpotLight(String name, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
name - Light name, must be unique.position - Spot position.direction - Spot direction.DirectionalLight createDirectionalLight(String name, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
name - Light name, must be unique.position - Light position.direction - Light direction.void serializeShapeFromMesh(String mesh, String file, String name)
mesh - Mesh to use to get the vertices data.file - File to save.name - Associated name.boolean isDebug()
true if the world is in debug mode.void deleteLight(Light light)
light - Light to delete.Camera getCamera(String name)
name - Unique camera name.Light getLight(String name)
name - Unique light name.void deleteLight(String name)
name - Name of the light to delete.MovableText createMovableText(String name, String text, Font font)
name - Object unique name.text - Text to display.font - Font to use.default MovableText createMovableText(String text, Font font)
BillboardSet createBillboardSet(Material material)
material - Material to use.GraphicObject createStaticObject(be.yildizgames.common.model.EntityId id, GraphicMesh mesh, be.yildizgames.common.geometry.Point3D position, be.yildizgames.common.geometry.Point3D direction)
Copyright © 2014–2018. All rights reserved.