|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.cast.CharacterDescriptor
public class CharacterDescriptor
The character descriptor object details the components that are pieced together to create a single character image.
| Field Summary | |
|---|---|
protected int[] |
_components
The component identifiers comprising the character. |
protected Point[] |
_xlations
The translations to apply when compositing this character. |
protected Colorization[][] |
_zations
The colorizations to apply when compositing this character. |
| Constructor Summary | |
|---|---|
CharacterDescriptor(int[] components,
Colorization[][] zations)
Constructs a character descriptor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
Colorization[][] |
getColorizations()
Returns an array of colorization arrays to be applied to the components when compositing action images (one array per component). |
int[] |
getComponentIds()
Returns an array of the component identifiers comprising the character described by this descriptor. |
Point[] |
getTranslations()
Returns the array of translations to be applied to the components when compositing action images. |
int |
hashCode()
|
void |
setColorizations(Colorization[][] zations)
Updates the colorizations to be used by this character descriptor. |
void |
setTranslations(Point[] xlations)
Updates the translations to be used by this character descriptor. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int[] _components
protected Colorization[][] _zations
protected Point[] _xlations
| Constructor Detail |
|---|
public CharacterDescriptor(int[] components,
Colorization[][] zations)
components - the component ids of the individual components
that make up this character.zations - the colorizations to apply to each of the character
component images when compositing actions (an array of
colorizations for each component, elements of which can be null to
make it easier to support per-component specialized colorizations).
This can be null if image recolorization is not desired.| Method Detail |
|---|
public int[] getComponentIds()
public Colorization[][] getColorizations()
public void setColorizations(Colorization[][] zations)
public Point[] getTranslations()
public void setTranslations(Point[] xlations)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||