|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.whirled.spot.data.SpotSceneImpl
public class SpotSceneImpl
An implementation of the SpotScene interface.
| Constructor Summary | |
|---|---|
SpotSceneImpl()
Instantiates a blank scene implementation. |
|
SpotSceneImpl(SpotSceneModel smodel)
Creates an instance that will obtain data from the supplied spot scene model. |
|
| Method Summary | |
|---|---|
void |
addPortal(Portal portal)
Adds a portal to this scene, immediately making the requisite modifications to the underlying scene model. |
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. |
void |
removePortal(Portal portal)
Removes the specified portal from the scene. |
void |
setDefaultEntrance(Portal portal)
Sets the default entrance in this scene, immediately making the requisite modifications to the underlying scene model. |
void |
setDefaultEntranceId(int defaultEntranceId)
Used when we're being parsed from an XML scene model. |
void |
updateReceived()
This should be called if a scene update was received that caused our underlying scene model to change. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpotSceneImpl(SpotSceneModel smodel)
public SpotSceneImpl()
| Method Detail |
|---|
public 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 setDefaultEntranceId(int defaultEntranceId)
public void setDefaultEntrance(Portal portal)
SpotScene
setDefaultEntrance in interface SpotScenepublic void updateReceived()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||