public final class LaunchableConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATT_DELAY
Rate attribute.
|
static String |
ATT_MEDIA
Media attribute.
|
static String |
ATT_OFFSET_X
Horizontal offset attribute.
|
static String |
ATT_OFFSET_Y
Vertical offset attribute.
|
static String |
NODE_LAUNCHABLE
Launchable node name.
|
Constructor and Description |
---|
LaunchableConfig(String media,
int delay,
int ox,
int oy,
Force vector)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
static Xml |
exports(LaunchableConfig config)
Export the launchable node from data.
|
int |
getDelay()
Get the launch delay value.
|
String |
getMedia()
Get the media.
|
int |
getOffsetX()
Get the horizontal offset.
|
int |
getOffsetY()
Get the vertical offset.
|
Force |
getVector()
Get the vector value.
|
int |
hashCode() |
static LaunchableConfig |
imports(Xml node)
Import the launchable data from node.
|
String |
toString() |
public static final String NODE_LAUNCHABLE
public static final String ATT_MEDIA
public static final String ATT_DELAY
public static final String ATT_OFFSET_X
public static final String ATT_OFFSET_Y
public LaunchableConfig(String media, int delay, int ox, int oy, Force vector)
media
- The media value.delay
- The delay value.ox
- The horizontal offset.oy
- The vertical offset.vector
- The vector force.LionEngineException
- If null
arguments.public static LaunchableConfig imports(Xml node)
node
- The node reference.LionEngineException
- If unable to read node.public static Xml exports(LaunchableConfig config)
config
- The config reference.LionEngineException
- If unable to write node.public String getMedia()
public int getDelay()
public int getOffsetX()
public int getOffsetY()
public Force getVector()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.