public class ObjectInfo extends SimpleStreamableObject implements Cloneable
Streamable.Closure| Modifier and Type | Field and Description |
|---|---|
String |
action
The action associated with this object or null if it has no
action.
|
byte |
priority
Don't access this directly unless you are serializing this
instance.
|
byte |
sorient
The orientation of the "spot" associated with this object.
|
byte |
sx
A "spot" associated with this object (specified as an offset from
the fine coordinates of the object's origin tile).
|
byte |
sy
A "spot" associated with this object (specified as an offset from
the fine coordinates of the object's origin tile).
|
int |
tileId
The fully qualified object tile id.
|
int |
x
The x and y tile coordinates of the object.
|
int |
y
The x and y tile coordinates of the object.
|
int |
zations
Up to two colorization assignments for this object.
|
| Constructor and Description |
|---|
ObjectInfo()
Zero argument constructor needed for unserialization.
|
ObjectInfo(int tileId,
int x,
int y)
Convenience constructor.
|
ObjectInfo(ObjectInfo other)
Creates an object info that is a copy of the supplied info.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectInfo |
clone() |
boolean |
equals(Object other) |
int |
getPrimaryZation()
Returns the primary colorization assignment.
|
int |
getPriority()
Returns the render priority of this object tile.
|
int |
getQuaternaryZation()
Returns the quaternary colorization assignment.
|
int |
getSecondaryZation()
Returns the secondary colorization assignment.
|
int |
getTertiaryZation()
Returns the tertiary colorization assignment.
|
int |
hashCode() |
boolean |
isInteresting()
Returns true if this object info contains non-default data for
anything other than the tile id and coordinates.
|
void |
setZations(byte primary,
byte secondary,
byte tertiary,
byte quaternary)
Sets the primary and secondary colorization assignments.
|
String |
tileIdToString()
Enhances our
SimpleStreamableObject.toString() output. |
toStringpublic int tileId
public int x
public int y
public byte priority
getPriority() instead.public String action
public byte sx
public byte sy
public byte sorient
public int zations
public ObjectInfo(int tileId,
int x,
int y)
public ObjectInfo(ObjectInfo other)
public ObjectInfo()
public int getPriority()
public int getPrimaryZation()
public int getSecondaryZation()
public int getTertiaryZation()
public int getQuaternaryZation()
public void setZations(byte primary,
byte secondary,
byte tertiary,
byte quaternary)
public boolean isInteresting()
public ObjectInfo clone()
public String tileIdToString()
SimpleStreamableObject.toString() output.Copyright © 2015. All rights reserved.