public final class LauncherConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATT_LEVEL
Level attribute name.
|
static String |
ATT_RATE
Rate attribute name.
|
static String |
NODE_LAUNCHER
Launcher node name.
|
Constructor and Description |
---|
LauncherConfig(int level,
int rate,
Collection<LaunchableConfig> launchables)
Create a launcher configuration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
static Xml |
exports(LauncherConfig config)
Export the launcher node from config.
|
Iterable<LaunchableConfig> |
getLaunchables()
Get the launchables configuration.
|
int |
getLevel()
Get the associated level.
|
int |
getRate()
Get the launch rate value.
|
int |
hashCode() |
static List<LauncherConfig> |
imports(Configurer configurer)
Import the launcher data from configurer.
|
static LauncherConfig |
imports(Xml node)
Import the launcher data from node.
|
String |
toString() |
public static final String NODE_LAUNCHER
public static final String ATT_LEVEL
public static final String ATT_RATE
public LauncherConfig(int level, int rate, Collection<LaunchableConfig> launchables)
level
- The associated level.rate
- The rate value.launchables
- The launchables reference.public static List<LauncherConfig> imports(Configurer configurer)
configurer
- The configurer reference.LionEngineException
- If unable to read node.public static LauncherConfig imports(Xml node)
node
- The node reference.LionEngineException
- If unable to read node.public static Xml exports(LauncherConfig config)
config
- The config reference.LionEngineException
- If unable to read node.public int getLevel()
public int getRate()
public Iterable<LaunchableConfig> getLaunchables()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.