public final class FramesConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATT_HORIZONTAL
Frames horizontal node name.
|
static String |
ATT_OFFSET_X
Frames offset horizontal attribute name.
|
static String |
ATT_OFFSET_Y
Frames offset vertical attribute name.
|
static String |
ATT_VERTICAL
Frames vertical attribute name.
|
static String |
NODE_FRAMES
Frames node name.
|
Constructor and Description |
---|
FramesConfig(int horizontalFrames,
int verticalFrames,
int offsetX,
int offsetY)
Create the frames configuration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
static Xml |
exports(FramesConfig config)
Exports the frames node from config.
|
int |
getHorizontal()
Get the number of horizontal frames.
|
int |
getOffsetX()
Get the horizontal offset.
|
int |
getOffsetY()
Get the vertical offset.
|
int |
getVertical()
Get the number of vertical frames.
|
int |
hashCode() |
static FramesConfig |
imports(Configurer configurer)
Imports the frames config from configurer.
|
static FramesConfig |
imports(Xml root)
Imports the frames config from node.
|
String |
toString() |
public static final String NODE_FRAMES
public static final String ATT_HORIZONTAL
public static final String ATT_VERTICAL
public static final String ATT_OFFSET_X
public static final String ATT_OFFSET_Y
public FramesConfig(int horizontalFrames, int verticalFrames, int offsetX, int offsetY)
horizontalFrames
- The horizontal frames value.verticalFrames
- The vertical frames value.offsetX
- The horizontal offset.offsetY
- The vertical offset.public static FramesConfig imports(Configurer configurer)
configurer
- The configurer reference.LionEngineException
- If unable to read node or invalid integer.public static FramesConfig imports(Xml root)
root
- The root reference.LionEngineException
- If unable to read node or invalid integer.public static Xml exports(FramesConfig config)
config
- The config reference.LionEngineException
- If unable to read node or invalid integer.public int getHorizontal()
public int getVertical()
public int getOffsetX()
public int getOffsetY()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.