|
|||||||||
| 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.ObjectInfo
public class ObjectInfo
Contains information about an object in a Miso scene.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
com.threerings.io.Streamable.Closure |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.threerings.io.SimpleStreamableObject |
|---|
toString, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public ObjectInfo(int tileId,
int x,
int y)
public ObjectInfo(ObjectInfo other)
public ObjectInfo()
| Method Detail |
|---|
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 boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic ObjectInfo clone()
clone in class Objectpublic String tileIdToString()
SimpleStreamableObject.toString() output.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||