|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.io.SimpleStreamableObject
com.threerings.whirled.spot.data.SpotSceneModel
public class SpotSceneModel
The spot scene model extends the standard scene model with information on portals. Portals are referenced by an identifier, unique within the scene and unchanging, so that portals can stably reference the target portal in the scene to which they connect.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
com.threerings.io.Streamable.Closure |
| Field Summary | |
|---|---|
int |
defaultEntranceId
The portal id of the default entrance to this scene. |
Portal[] |
portals
An array containing all portals in this scene. |
| Constructor Summary | |
|---|---|
SpotSceneModel()
|
|
| Method Summary | |
|---|---|
void |
addPortal(Portal portal)
Adds a portal to this scene model. |
SpotSceneModel |
clone()
Creates a clone of this auxiliary model. |
static SpotSceneModel |
getSceneModel(SceneModel model)
Locates and returns the SpotSceneModel among the auxiliary scene models associated
with the supplied scene model. |
void |
removePortal(Portal portal)
Removes a portal from this model. |
| Methods inherited from class com.threerings.io.SimpleStreamableObject |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Portal[] portals
public int defaultEntranceId
| Constructor Detail |
|---|
public SpotSceneModel()
| Method Detail |
|---|
public void addPortal(Portal portal)
public void removePortal(Portal portal)
public SpotSceneModel clone()
throws CloneNotSupportedException
AuxModel
clone in interface AuxModelclone in class ObjectCloneNotSupportedExceptionpublic static SpotSceneModel getSceneModel(SceneModel model)
SpotSceneModel among the auxiliary scene models associated
with the supplied scene model. null is returned if no spot scene model could
be found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||