|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.io.SimpleStreamableObject
com.threerings.miso.data.MisoSceneModel
com.threerings.miso.data.SparseMisoSceneModel
com.threerings.stage.data.StageMisoSceneModel
public class StageMisoSceneModel
Extends the SparseMisoSceneModel with the necessary interface
to wire it up to the Whirled auxiliary model system.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.miso.data.SparseMisoSceneModel |
|---|
com.threerings.miso.data.SparseMisoSceneModel.ObjectVisitor, com.threerings.miso.data.SparseMisoSceneModel.Section |
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
Streamable.Closure |
| Field Summary | |
|---|---|
static int |
SECTION_HEIGHT
The height (in tiles) of a scene section. |
static int |
SECTION_WIDTH
The width (in tiles) of a scene section. |
| Fields inherited from class com.threerings.miso.data.SparseMisoSceneModel |
|---|
_sections, defTileSet, sheight, swidth |
| Constructor Summary | |
|---|---|
StageMisoSceneModel()
Creates a completely uninitialized scene model. |
|
| Method Summary | |
|---|---|
StageMisoSceneModel |
clone()
Creates a clone of this auxiliary model. |
static StageMisoSceneModel |
getSceneModel(SceneModel model)
Locates and returns the StageMisoSceneModel among the
auxiliary scene models associated with the supplied scene model. |
com.threerings.miso.data.SparseMisoSceneModel.Section |
getSection(int key)
Returns the section identified by the specified key, or null if no section exists for that key. |
int |
getSectionKey(int x,
int y)
Returns the section key for the specified tile coordinate. |
| Methods inherited from class com.threerings.miso.data.SparseMisoSceneModel |
|---|
addObject, getAllObjects, getBaseTileId, getDefaultBaseTileSet, getInterestingObjects, getObjects, getSection, getSections, key, readField__sections, removeObject, setBaseTile, setDefaultBaseTileSet, setSection, toString, updateObject, visitObjects, visitObjects, writeField__sections |
| Methods inherited from class com.threerings.io.SimpleStreamableObject |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SECTION_WIDTH
public static final int SECTION_HEIGHT
| Constructor Detail |
|---|
public StageMisoSceneModel()
| Method Detail |
|---|
public static StageMisoSceneModel getSceneModel(SceneModel model)
StageMisoSceneModel among the
auxiliary scene models associated with the supplied scene model.
null is returned if no miso scene model could be
found.
public int getSectionKey(int x,
int y)
public com.threerings.miso.data.SparseMisoSceneModel.Section getSection(int key)
public StageMisoSceneModel clone()
AuxModel
clone in interface AuxModelclone in class com.threerings.miso.data.SparseMisoSceneModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||