| Constructor and Description |
|---|
StageScene(StageSceneModel model,
com.threerings.crowd.data.PlaceConfig config)
Creates an instance that will obtain data from the supplied scene
model and place config.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addObject(com.threerings.miso.data.ObjectInfo info)
Adds a new object to this scene.
|
void |
addPortal(Portal portal)
Adds a portal to this scene, immediately making the requisite modifications to the
underlying scene model.
|
StageScene |
clone() |
Iterator<com.threerings.miso.data.ObjectInfo> |
enumerateObjects()
Iterates over all of the interesting objects in this scene.
|
int |
getDefaultColor(int classId)
Get the default color id to use for the specified colorization class,
or -1 if no default is set.
|
Portal |
getDefaultEntrance()
Returns the portal that represents the default entrance to this scene.
|
short |
getNextPortalId()
Returns the portal id that should be assigned to the next portal added to this scene.
|
Portal |
getPortal(int portalId)
Returns a
Portal object for the portal with the specified id or null if no portal
exists with that id. |
int |
getPortalCount()
Returns the number of portals in this scene.
|
Iterator<Portal> |
getPortals()
Returns an iterator over the portals in this scene.
|
String |
getType()
Returns the scene type (e.g.
|
int |
getZoneId()
Returns the zone id to which this scene belongs.
|
boolean |
removeObject(com.threerings.miso.data.ObjectInfo info)
Removes an object from this scene.
|
void |
removePortal(Portal portal)
Removes the specified portal from the scene.
|
void |
setDefaultColor(int classId,
int colorId)
Set the default color to use for the specified colorization class id.
|
void |
setDefaultEntrance(Portal portal)
Sets the default entrance in this scene, immediately making the requisite modifications to
the underlying scene model.
|
void |
setType(String type)
Sets the type of this scene.
|
void |
updateReceived(SceneUpdate update)
Called to inform the scene that an update has been received while
the scene was resolved and active.
|
getId, getName, getPlaceConfig, getSceneModel, getVersion, setId, setName, setVersion, toStringpublic StageScene(StageSceneModel model, com.threerings.crowd.data.PlaceConfig config)
public String getType()
public int getZoneId()
public void setType(String type)
public int getDefaultColor(int classId)
public void setDefaultColor(int classId,
int colorId)
public Iterator<com.threerings.miso.data.ObjectInfo> enumerateObjects()
public void addObject(com.threerings.miso.data.ObjectInfo info)
public boolean removeObject(com.threerings.miso.data.ObjectInfo info)
public void updateReceived(SceneUpdate update)
SceneupdateReceived in interface SceneupdateReceived in class SceneImplpublic StageScene clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic Portal getPortal(int portalId)
SpotScenePortal object for the portal with the specified id or null if no portal
exists with that id.public int getPortalCount()
SpotScenegetPortalCount in interface SpotScenepublic Iterator<Portal> getPortals()
SpotScenegetPortals in interface SpotScenepublic short getNextPortalId()
SpotScenegetNextPortalId in interface SpotScenepublic Portal getDefaultEntrance()
SpotScenegetDefaultEntrance in interface SpotScenepublic void addPortal(Portal portal)
SpotSceneSpotScene.getNextPortalId().public void removePortal(Portal portal)
SpotSceneremovePortal in interface SpotScenepublic void setDefaultEntrance(Portal portal)
SpotScenesetDefaultEntrance in interface SpotSceneCopyright © 2015. All rights reserved.