public final class ActionConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATT_DESCRIPTION
Action attribute description.
|
static String |
ATT_HEIGHT
Action attribute height.
|
static String |
ATT_NAME
Action attribute name.
|
static String |
ATT_WIDTH
Action attribute width.
|
static String |
ATT_X
Action attribute x.
|
static String |
ATT_Y
Action attribute y.
|
static String |
NODE_ACTION
Action node name.
|
Constructor and Description |
---|
ActionConfig(String name,
String description,
int x,
int y,
int width,
int height)
Create action from configuration media.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
static Xml |
exports(ActionConfig config)
Export the action node from data.
|
String |
getDescription()
Get the action description.
|
int |
getHeight()
Get the button height.
|
String |
getName()
Get the action name.
|
int |
getWidth()
Get the button width.
|
int |
getX()
Get the button horizontal location.
|
int |
getY()
Get the button vertical location.
|
int |
hashCode() |
static ActionConfig |
imports(Configurer configurer)
Import the action data from setup.
|
static ActionConfig |
imports(Xml root)
Import the action data from node.
|
String |
toString() |
public static final String NODE_ACTION
public static final String ATT_NAME
public static final String ATT_DESCRIPTION
public static final String ATT_X
public static final String ATT_Y
public static final String ATT_WIDTH
public static final String ATT_HEIGHT
public ActionConfig(String name, String description, int x, int y, int width, int height)
name
- The action name.description
- The action description.x
- The horizontal location on screen.y
- The vertical location on screen.width
- The button width.height
- The button height.LionEngineException
- If null
argument.public static ActionConfig imports(Configurer configurer)
configurer
- The configurer reference.LionEngineException
- If unable to read node.public static ActionConfig imports(Xml root)
root
- The root node reference.LionEngineException
- If unable to read node.public static Xml exports(ActionConfig config)
config
- The config reference.LionEngineException
- If unable to save.public String getName()
public String getDescription()
public int getX()
public int getY()
public int getWidth()
public int getHeight()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.