|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdesktop.wonderland.server.cell.CellManagerMO
public class CellManagerMO
| Nested Class Summary | |
|---|---|
static interface |
CellManagerMO.EnvironmentCellCreator
Interface for the environment cell creator. |
| Method Summary | |
|---|---|
protected EnvironmentCellMO |
createEnvironmentCell()
Create an environment cell using the default creator. |
static CellMO |
getCell(CellID cellID)
Return the cell with the given ID, or null if the id is invalid |
static CellManagerMO |
getCellManager()
Return singleton master cell cache |
static EnvironmentCellMO |
getEnvironmentCell()
Get the singleton environment cell |
java.util.Set<CellID> |
getRootCells()
Get the list of all root cells in the world, creating it if it doesn't exist |
protected java.util.Set<CellID> |
getRootCellsForUpdate()
Convenience method to mark the root cells for update |
static void |
initialize()
Initialize the master cell cache. |
void |
insertCellInWorld(CellMO cell)
Insert the cell into the world. |
void |
loadWorld()
Load the initial world. |
void |
registerAvatarCellComponent(java.lang.Class<? extends CellComponentMO> componentClass)
Register a component that will be added to avatar cells |
void |
registerCellComponent(java.lang.Class<? extends CellMO> cellClass,
java.lang.Class<? extends CellComponentMO> componentClass)
Register a component that will be automatically added to every cell at creation time. |
void |
registerEnvironmentCellCreator(CellManagerMO.EnvironmentCellCreator creator)
Register to create the environment cell. |
void |
removeCellFromWorld(CellMO cell)
Remove a cell from the world |
void |
saveWorld()
|
void |
unregisterCellComponent(java.lang.Class<? extends CellMO> cellClass,
java.lang.Class<? extends CellComponentMO> componentClass)
Unregister a component type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void initialize()
public static CellManagerMO getCellManager()
public static CellMO getCell(CellID cellID)
cellID - the cell ID to getTranslation
public static EnvironmentCellMO getEnvironmentCell()
public void registerEnvironmentCellCreator(CellManagerMO.EnvironmentCellCreator creator)
creator - the creator to registerprotected EnvironmentCellMO createEnvironmentCell()
creator - the cell creator
public void insertCellInWorld(CellMO cell)
throws MultipleParentException
MultipleParentExceptionpublic void removeCellFromWorld(CellMO cell)
cell - the cell to removepublic java.util.Set<CellID> getRootCells()
protected java.util.Set<CellID> getRootCellsForUpdate()
public void loadWorld()
public void saveWorld()
public void registerAvatarCellComponent(java.lang.Class<? extends CellComponentMO> componentClass)
component -
public void registerCellComponent(java.lang.Class<? extends CellMO> cellClass,
java.lang.Class<? extends CellComponentMO> componentClass)
cellClass - the class of cell to register oncomponentClass - the class to instantiate
public void unregisterCellComponent(java.lang.Class<? extends CellMO> cellClass,
java.lang.Class<? extends CellComponentMO> componentClass)
cellClass - the class of cell to register oncomponentClass - the class to instantiate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||