public class Blueprint extends MapObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BLUEPRINT_FILE_EXTENSION
Blueprint in this format support multiple map objects as children (extended template XML).
|
static java.lang.String |
TEMPLATE_FILE_EXTENSION
Templates in this format typically come from the Tiled editor and only support a single MapObject.
|
Constructor and Description |
---|
Blueprint() |
Blueprint(java.lang.String name,
boolean keepIds,
MapObject... items) |
Blueprint(java.lang.String name,
MapObject... items) |
Modifier and Type | Method and Description |
---|---|
java.util.List<IMapObject> |
build(float x,
float y) |
java.util.List<IMapObject> |
build(java.awt.geom.Point2D location) |
java.lang.Iterable<MapObject> |
getItems() |
boolean |
keepIds()
Gets a value that indicates whether the IDs if this blueprint's map-objects
should be kept.
|
getBoundingBox, getBounds, getBounds, getBounds2D, getBounds2D, getEllipse, getGridId, getHeight, getId, getLayer, getLocation, getName, getPolygon, getPolyline, getText, getTile, getType, getWidth, getX, getY, isEllipse, isPoint, isPolygon, isPolyline, setGridId, setHeight, setId, setLayer, setLocation, setLocation, setName, setPolyline, setType, setWidth, setX, setY, toString
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
public static final java.lang.String TEMPLATE_FILE_EXTENSION
public static final java.lang.String BLUEPRINT_FILE_EXTENSION
public Blueprint()
public Blueprint(java.lang.String name, MapObject... items)
public Blueprint(java.lang.String name, boolean keepIds, MapObject... items)
public java.lang.Iterable<MapObject> getItems()
public boolean keepIds()
IMapObject
s of this Blueprint
should be re-applied after building new instances.public java.util.List<IMapObject> build(java.awt.geom.Point2D location)
public java.util.List<IMapObject> build(float x, float y)