public class SceneImpl extends Object implements Scene
Scene interface.| Constructor and Description |
|---|
SceneImpl()
Instantiates a blank scene implementation.
|
SceneImpl(SceneModel 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 |
|---|---|
int |
getId()
Returns the unique identifier for this scene.
|
String |
getName()
Returns the human readable name of this scene.
|
com.threerings.crowd.data.PlaceConfig |
getPlaceConfig()
Returns the place config that can be used to determine which place
controller instance should be used to display this scene as well as
to obtain runtime configuration information.
|
SceneModel |
getSceneModel()
Returns the scene model from which this scene was created.
|
int |
getVersion()
Returns the version number of this scene.
|
void |
setId(int sceneId)
Sets this scene's unique identifier.
|
void |
setName(String name)
Sets the human readable name of this scene.
|
void |
setVersion(int version)
Sets this scene's version number.
|
String |
toString() |
void |
updateReceived(SceneUpdate update)
Called to inform the scene that an update has been received while
the scene was resolved and active.
|
public SceneImpl(SceneModel model, com.threerings.crowd.data.PlaceConfig config)
public SceneImpl()
public int getId()
Scenepublic String getName()
Scenepublic int getVersion()
ScenegetVersion in interface Scenepublic com.threerings.crowd.data.PlaceConfig getPlaceConfig()
ScenegetPlaceConfig in interface Scenepublic void setId(int sceneId)
Scenepublic void setName(String name)
Scenepublic void setVersion(int version)
ScenesetVersion in interface Scenepublic void updateReceived(SceneUpdate update)
SceneupdateReceived in interface Scenepublic SceneModel getSceneModel()
ScenegetSceneModel in interface SceneCopyright © 2015. All rights reserved.