|
|||||||||
| 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.SparseMisoSceneModel.Section
public static class SparseMisoSceneModel.Section
Contains information on a section of this scene. This is only public so that the scene model parser can do its job, so don't go poking around in here.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
com.threerings.io.Streamable.Closure |
| Field Summary | |
|---|---|
int[] |
baseTileIds
The combined tile ids (tile set id and tile id) for our section (in row major order). |
ObjectInfo[] |
objectInfo
Information records for the "interesting" objects in the object layer. |
int[] |
objectTileIds
The combined tile ids (tile set id and tile id) of the "uninteresting" tiles in the object layer. |
short[] |
objectXs
The x coordinate of the "uninteresting" tiles in the object layer. |
short[] |
objectYs
The y coordinate of the "uninteresting" tiles in the object layer. |
int |
width
The width of this section in tiles. |
short |
x
The tile coordinate of our upper leftmost tile. |
short |
y
The tile coordinate of our upper leftmost tile. |
| Constructor Summary | |
|---|---|
SparseMisoSceneModel.Section()
Creates a blank section instance, suitable for unserialization or configuration by the XML scene parser. |
|
SparseMisoSceneModel.Section(short x,
short y,
short width,
short height)
Creates a new scene section with the specified dimensions. |
|
| Method Summary | |
|---|---|
boolean |
addObject(ObjectInfo info)
|
SparseMisoSceneModel.Section |
clone()
|
void |
getAllObjects(ArrayList<ObjectInfo> list)
|
int |
getBaseTileId(int col,
int row)
|
void |
getObjects(Rectangle region,
ObjectSet set)
|
protected int |
indexOfUn(ObjectInfo info)
Returns the index of the specified object in the uninteresting arrays or -1 if it is not in this section as an uninteresting object. |
boolean |
isBlank()
Returns true if this section contains no data beyond the default. |
boolean |
removeObject(ObjectInfo info)
|
void |
setBaseTile(int col,
int row,
int fqBaseTileId)
|
String |
toString()
|
| 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 short x
public short y
public int width
public int[] baseTileIds
public int[] objectTileIds
public short[] objectXs
public short[] objectYs
public ObjectInfo[] objectInfo
| Constructor Detail |
|---|
public SparseMisoSceneModel.Section()
public SparseMisoSceneModel.Section(short x,
short y,
short width,
short height)
| Method Detail |
|---|
public int getBaseTileId(int col,
int row)
public void setBaseTile(int col,
int row,
int fqBaseTileId)
public boolean addObject(ObjectInfo info)
public boolean removeObject(ObjectInfo info)
protected int indexOfUn(ObjectInfo info)
public void getAllObjects(ArrayList<ObjectInfo> list)
public void getObjects(Rectangle region,
ObjectSet set)
public boolean isBlank()
public SparseMisoSceneModel.Section clone()
clone in class Objectpublic String toString()
toString in class com.threerings.io.SimpleStreamableObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||