public interface Configurable
Modifier and Type | Method and Description |
---|---|
Animation |
getDataAnimation(String name)
Get an animation data from its name.
|
boolean |
getDataBoolean(String attribute,
String... path)
Get a boolean in the xml tree.
|
CollisionData |
getDataCollision(String name)
Get a collision data from its name.
|
double |
getDataDouble(String attribute,
String... path)
Get a double in the xml tree.
|
int |
getDataInteger(String attribute,
String... path)
Get an integer in the xml tree.
|
XmlNode |
getDataRoot()
Get the data root container for raw access.
|
String |
getDataString(String attribute,
String... path)
Get a string in the xml tree.
|
void |
loadData(Media media)
Load data from configuration media.
|
void loadData(Media media)
media
- The xml media.XmlNode getDataRoot()
String getDataString(String attribute, String... path)
attribute
- The attribute to get as string.path
- The node path (child list)int getDataInteger(String attribute, String... path)
attribute
- The attribute to get as integer.path
- The node path (child list)boolean getDataBoolean(String attribute, String... path)
attribute
- The attribute to get as boolean.path
- The node path (child list)double getDataDouble(String attribute, String... path)
attribute
- The attribute to get as double.path
- The node path (child list)Animation getDataAnimation(String name)
name
- The animation name.CollisionData getDataCollision(String name)
name
- The collision name.Copyright © 2014 Byron 3D Games Studio. All rights reserved.