All Implemented Interfaces:
ICustomPropertyProvider, IMapObject, Resource, java.lang.Comparable<Resource>

public class Blueprint
extends MapObject
  • Field Details

  • Constructor Details

    • Blueprint

      public Blueprint()
      Initializes a new instance of the Blueprint map object.
    • Blueprint

      public Blueprint​(java.lang.String name, MapObject... mapObjects)
      Initializes a new instance of the Blueprint map object.
      Parameters:
      name - The name of the blueprint.
      mapObjects - The map objects to build the blueprint from.
    • Blueprint

      public Blueprint​(java.lang.String name, boolean keepIds, MapObject... mapObjects)
      Initializes a new instance of the Blueprint map object.
      Parameters:
      name - The name of the blueprint.
      keepIds - A flag indicating whether the IDs of the specified map objects should be kept.
      mapObjects - The map objects to build the blueprint from.
  • Method Details

    • getItems

      public java.lang.Iterable<MapObject> getItems()
    • keepIds

      public boolean keepIds()
      Gets a value that indicates whether the IDs if this blueprint's map-objects should be kept. This is currently used when objects are cut and pasted afterwards.
      Returns:
      True if the ids for all IMapObjects of this Blueprint should be re-applied after building new instances.
    • build

      public java.util.List<IMapObject> build​(java.awt.geom.Point2D location)
    • build

      public java.util.List<IMapObject> build​(float x, float y)