|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.whirled.data.SceneImpl
com.threerings.stage.data.StageScene
public class StageScene
The implementation of the Stage scene interface.
| Field Summary | |
|---|---|
protected StageSceneModel |
_model
A reference to our scene model. |
protected ArrayList<com.threerings.miso.data.ObjectInfo> |
_objects
A list of all interesting scene objects. |
protected SpotSceneImpl |
_sdelegate
Our spot scene delegate. |
| Fields inherited from class com.threerings.whirled.data.SceneImpl |
|---|
_config |
| Constructor Summary | |
|---|---|
StageScene(StageSceneModel model,
PlaceConfig config)
Creates an instance that will obtain data from the supplied scene model and place config. |
|
| Method Summary | |
|---|---|
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. |
protected void |
readInterestingObjects()
|
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. |
| Methods inherited from class com.threerings.whirled.data.SceneImpl |
|---|
getId, getName, getPlaceConfig, getSceneModel, getVersion, setId, setName, setVersion, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected StageSceneModel _model
protected SpotSceneImpl _sdelegate
protected ArrayList<com.threerings.miso.data.ObjectInfo> _objects
| Constructor Detail |
|---|
public StageScene(StageSceneModel model,
PlaceConfig config)
| Method Detail |
|---|
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)
Scene
updateReceived in interface SceneupdateReceived in class SceneImpl
public 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.
getPortal in interface SpotScenepublic int getPortalCount()
SpotScene
getPortalCount in interface SpotScenepublic Iterator<Portal> getPortals()
SpotScene
getPortals in interface SpotScenepublic short getNextPortalId()
SpotScene
getNextPortalId in interface SpotScenepublic Portal getDefaultEntrance()
SpotScene
getDefaultEntrance in interface SpotScenepublic void addPortal(Portal portal)
SpotSceneSpotScene.getNextPortalId().
addPortal in interface SpotScenepublic void removePortal(Portal portal)
SpotScene
removePortal in interface SpotScenepublic void setDefaultEntrance(Portal portal)
SpotScene
setDefaultEntrance in interface SpotSceneprotected void readInterestingObjects()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||