public class CharacterComponent extends Object implements Serializable
Sprite class direction constants.| Modifier and Type | Field and Description |
|---|---|
ComponentClass |
componentClass
The class of components to which this one belongs.
|
int |
componentId
The unique component identifier.
|
String |
name
The component's name.
|
| Constructor and Description |
|---|
CharacterComponent(int componentId,
String name,
ComponentClass compClass,
FrameProvider fprov)
Constructs a character component with the specified id of the specified class.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public int componentId
public String name
public ComponentClass componentClass
public CharacterComponent(int componentId,
String name,
ComponentClass compClass,
FrameProvider fprov)
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.Copyright © 2015. All rights reserved.