|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.cast.CharacterComponent
public class CharacterComponent
The character component represents a single component that can be composited with other
character components to generate an image representing a complete character displayable in any
of the eight compass directions as detailed in the Sprite class direction constants.
| Field Summary | |
|---|---|
protected FrameProvider |
_frameProvider
The entity from which we obtain our animation frames. |
ComponentClass |
componentClass
The class of components to which this one belongs. |
int |
componentId
The unique component identifier. |
String |
name
The component's name. |
| Constructor Summary | |
|---|---|
CharacterComponent(int componentId,
String name,
ComponentClass compClass,
FrameProvider fprov)
Constructs a character component with the specified id of the specified class. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
String |
getFramePath(String action,
String type,
Set<String> existentPaths)
Returns the path to the image frames for the specified action animation or null if no animation for the specified action is available for this component. |
ActionFrames |
getFrames(String action,
String type)
Returns the image frames for the specified action animation or null if no animation for the specified action is available for this component. |
int |
getRenderPriority(String action,
int orientation)
Returns the render priority appropriate for this component at the specified action and orientation. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int componentId
public String name
public ComponentClass componentClass
protected FrameProvider _frameProvider
| Constructor Detail |
|---|
public CharacterComponent(int componentId,
String name,
ComponentClass compClass,
FrameProvider fprov)
| Method Detail |
|---|
public int getRenderPriority(String action,
int orientation)
public ActionFrames getFrames(String action,
String type)
type - null for the normal action frames or one of the custom action sub-types:
StandardActions.SHADOW_TYPE, etc.
public String getFramePath(String action,
String type,
Set<String> existentPaths)
type - null for the normal action frames or one of the custom action sub-types:
StandardActions.SHADOW_TYPE, etc.existentPaths - the set of all paths for which there are valid frames.public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode 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 | ||||||||