|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectespresso3d.engine.base.E3DEngineItem
espresso3d.engine.renderer.base.E3DRenderable
espresso3d.engine.world.E3DWorld
| Constructor Summary | |
E3DWorld(E3DEngine engine,
java.lang.String worldID)
|
|
| Method Summary | |
void |
addPreloadedActor(java.lang.String actorsNameInMapfile,
E3DActor actor)
This preloads actors into the world, so when the world's map is loaded, it will be able to also add the actors defined in the mapfile |
void |
addPreloadedParticleSystem(java.lang.String particleSystemsNameInMapfile,
E3DParticleSystem particleSystem)
This preloads particlesystems into the world, so when the world's map is loaded, it will be able to also add the actors defined in the mapfile |
void |
addSector(E3DSector sector)
Add a sector to this world with a unique name sectorID |
E3DActor |
getActor(java.lang.String actorID)
Get an actor that is in the world by its actorID. |
java.util.HashMap |
getActorMap()
Traverses all sectors in the world and generates a map of all the actors. |
java.util.HashMap |
getLightMap()
Returns all the lights in all the sectors of the world Rendering should use a lower level approach at this (like just getting lights out of the sector) If lights have the same ID, the last one read will be used (the others overwritten in this map0 |
java.util.HashMap |
getPreloadedActorMap()
|
java.util.HashMap |
getPreloadedParticleSystemMap()
Return a hashmap of particle systems that have been preloaded into the world. |
E3DSector |
getSector(java.lang.String sectorID)
Gets the sector in this world that was keyed off sectorID |
java.util.HashMap |
getSectorMap()
|
E3DSkyObject |
getSkyObject()
|
E3DTexture |
getTexture(java.lang.String textureName)
Return the E3DTexture that is loaded in a textureSet and named textureName |
int |
getTextureIDByName(java.lang.String textureName)
Get an already loaded texture's GL textureID by its aliased name. |
java.util.HashMap |
getTextureSet()
|
java.util.ArrayList |
getTriangleList()
Get all the triangles taht are in the world. |
java.lang.String |
getWorldID()
|
void |
loadTextureSet(java.lang.String textureSetFileName,
boolean fromJar)
Load a texture set into the world to be used by actors, worlds, particles, etc. |
void |
loadWorld(java.lang.String mapFileName,
boolean fromJar)
Load a map's geometry into the world |
void |
removeAllPreloadedActors()
Remove all the preloaded actors from the world |
void |
removeAllPreloadParticleSystems()
Remove all the preloaded particle systems from the world |
void |
removeAllSectors()
Remove all the sectors from the world |
void |
removePreloadedActor(java.lang.String actorsNameInMapfile)
Remove a preloaded actor from the world. |
void |
removePreloadedParticleSystem(java.lang.String partcleSystemsNameInMapfile)
Remove a preloaded particleSystem from the world. |
void |
removeSector(java.lang.String sectorID)
Remove a sector from this world |
void |
render()
|
void |
render(E3DViewport currentViewport)
Render this world at the position into the currentViewport |
void |
setSectorMap(java.util.HashMap sectorMap)
|
void |
setSkyObject(E3DSkyObject skyObject)
|
| Methods inherited from class espresso3d.engine.renderer.base.E3DRenderable |
getBlendMode, getKey, getRenderMode, initCorrectGeometryRenderer, isKeyChanged, setBlendMode, setKeyChanged, setRenderMode |
| Methods inherited from class espresso3d.engine.base.E3DEngineItem |
getEngine, setEngine |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public E3DWorld(E3DEngine engine,
java.lang.String worldID)
| Method Detail |
public void loadTextureSet(java.lang.String textureSetFileName,
boolean fromJar)
throws E3DMissingEngineException,
E3DInvalidFileFormatException,
java.io.IOException
textureSetFileName - fromJar - Set to true if textureset is packaged in a JAR file
E3DMissingEngineException
E3DInvalidFileFormatException
java.io.IOException
public void loadWorld(java.lang.String mapFileName,
boolean fromJar)
throws E3DMissingEngineException,
java.lang.Exception
mapFileName - fromJar - Set to true if the mapfile is packaged within a JAR file
E3DMissingEngineException
java.lang.Exceptionpublic void addSector(E3DSector sector)
sector - public void removeSector(java.lang.String sectorID)
sectorID -
public void removeAllSectors()
public E3DActor getActor(java.lang.String actorID)
actorID -
public java.util.HashMap getActorMap()
public java.util.HashMap getSectorMap()
public void setSectorMap(java.util.HashMap sectorMap)
sectorMap - The sectorMap to set.public E3DSector getSector(java.lang.String sectorID)
sectorID -
public java.util.HashMap getTextureSet()
public int getTextureIDByName(java.lang.String textureName)
textureName -
public E3DTexture getTexture(java.lang.String textureName)
textureName - The name of the texture in the textureMap
public void render()
render in class E3DRenderablepublic void render(E3DViewport currentViewport)
public java.util.ArrayList getTriangleList()
public java.util.HashMap getLightMap()
public java.util.HashMap getPreloadedActorMap()
public void addPreloadedActor(java.lang.String actorsNameInMapfile,
E3DActor actor)
actorsNameInMapfile - This is what the actor is called in the mapfileactor - This is the actual actors object.public void removePreloadedActor(java.lang.String actorsNameInMapfile)
actorsNameInMapfile - public void removeAllPreloadedActors()
public void addPreloadedParticleSystem(java.lang.String particleSystemsNameInMapfile,
E3DParticleSystem particleSystem)
particleSystemsNameInMapfile - This is what the particleSystem is called in the mapfileparticleSystem - This is the actual particleSystem's object.public void removePreloadedParticleSystem(java.lang.String partcleSystemsNameInMapfile)
public void removeAllPreloadParticleSystems()
public java.lang.String getWorldID()
public java.util.HashMap getPreloadedParticleSystemMap()
public E3DSkyObject getSkyObject()
public void setSkyObject(E3DSkyObject skyObject)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||