public final class ProducibleConfig extends Object
SizeConfig
.Producible
Modifier and Type | Field and Description |
---|---|
static String |
ATT_STEPS
Production steps attribute name.
|
static String |
NODE_PRODUCIBLE
Producible root node.
|
Constructor and Description |
---|
ProducibleConfig(int steps,
int width,
int height)
Create producible from configuration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static XmlNode |
exports(ProducibleConfig config)
Export the producible node from config.
|
int |
getHeight()
Get the production height.
|
int |
getSteps()
Get the production steps number.
|
int |
getWidth()
Get the production width.
|
int |
hashCode() |
static ProducibleConfig |
imports(Configurer configurer)
Create the producible data from configurer.
|
static ProducibleConfig |
imports(Setup setup)
Create the producible data from setup.
|
static ProducibleConfig |
imports(XmlNode root)
Create the producible data from node.
|
public static final String NODE_PRODUCIBLE
public static final String ATT_STEPS
public ProducibleConfig(int steps, int width, int height)
steps
- The production steps number.width
- The production width.height
- The production height.public static ProducibleConfig imports(Setup setup)
setup
- The setup reference.LionEngineException
- If unable to read node.public static ProducibleConfig imports(Configurer configurer)
configurer
- The configurer reference.LionEngineException
- If unable to read node.public static ProducibleConfig imports(XmlNode root)
root
- The root reference.LionEngineException
- If unable to read node.public static XmlNode exports(ProducibleConfig config)
config
- The config reference.LionEngineException
- If unable to write node.public int getWidth()
public int getHeight()
public int getSteps()
Copyright © 2016 Byron 3D Games Studio. All rights reserved.