public static class SparseMisoSceneModel.Section extends SimpleStreamableObject implements Cloneable
Streamable.Closure| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
Section()
Creates a blank section instance, suitable for unserialization
or configuration by the XML scene parser.
|
Section(short x,
short y,
short width,
short height)
Creates a new scene section with the specified dimensions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addObject(ObjectInfo info) |
SparseMisoSceneModel.Section |
clone() |
void |
getAllObjects(ArrayList<ObjectInfo> list) |
int |
getBaseTileId(int col,
int row) |
void |
getObjects(Rectangle region,
ObjectSet set) |
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() |
public short x
public short y
public int width
public int[] baseTileIds
public int[] objectTileIds
public short[] objectXs
public short[] objectYs
public ObjectInfo[] objectInfo
public Section()
public Section(short x,
short y,
short width,
short height)
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)
public void getAllObjects(ArrayList<ObjectInfo> list)
public boolean isBlank()
public SparseMisoSceneModel.Section clone()
public String toString()
toString in class SimpleStreamableObjectCopyright © 2015. All rights reserved.