| Constructor and Description |
|---|
SpotSceneImpl()
Instantiates a blank scene implementation.
|
SpotSceneImpl(SpotSceneModel smodel)
Creates an instance that will obtain data from the supplied spot scene model.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public SpotSceneImpl(SpotSceneModel smodel)
public SpotSceneImpl()
public 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 setDefaultEntranceId(int defaultEntranceId)
public void setDefaultEntrance(Portal portal)
SpotScenesetDefaultEntrance in interface SpotScenepublic void updateReceived()
Copyright © 2015. All rights reserved.