|
|||||||||||
| 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 |
addSector(E3DSector sector)
Add a sector to this world with a unique name sectorID |
E3DActor |
getActor(java.lang.String 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()
|
E3DSector |
getSector(java.lang.String sectorID)
Gets the sector in this world that was keyed off sectorID |
java.util.HashMap |
getSectorMap()
|
int |
getTextureIDByName(java.lang.String textureName)
|
java.util.HashMap |
getTextureMap()
|
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)
|
void |
loadWorld(java.lang.String mapFileName)
|
void |
removeAllSectors()
Remove all the sectors from the world |
void |
removePreloadedActor(java.lang.String actorsNameInMapfile)
Remove a preloaded actor from the world. |
void |
removeSector(java.lang.String sectorID)
Remove a sector from this world |
void |
renderAtPosition(E3DVector3F atPosition)
Render this world at the position. |
void |
setSectorMap(java.util.HashMap sectorMap)
|
| Methods inherited from class espresso3d.engine.renderer.base.E3DRenderable |
render |
| 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
E3DMissingEngineException
E3DInvalidFileFormatException
java.io.IOException
public void loadWorld(java.lang.String mapFileName)
throws E3DMissingEngineException,
java.lang.Exception
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)
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 getTextureMap()
public int getTextureIDByName(java.lang.String textureName)
public void renderAtPosition(E3DVector3F atPosition)
renderAtPosition in class E3DRenderablepublic 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 java.lang.String getWorldID()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||