Class SelectionTool.Selection

java.lang.Object
group24.escaperoom.ui.editorTools.SelectionTool.Selection
Enclosing class:
SelectionTool

public static class SelectionTool.Selection extends Object
  • Field Details

    • area

      protected com.badlogic.gdx.math.Rectangle area
    • selectedItems

      protected com.badlogic.gdx.utils.Array<Item> selectedItems
    • screen

      protected MapScreen screen
  • Constructor Details

    • Selection

      public Selection(com.badlogic.gdx.math.Rectangle area, com.badlogic.gdx.utils.Array<Item> selectedItems, MapScreen screen)
  • Method Details

    • minimizeArea

      public void minimizeArea()
    • addItem

      protected void addItem(Item item)
    • setStart

      public void setStart(com.badlogic.gdx.math.Vector2 vec)
      In Game coords
    • setEnd

      public void setEnd(com.badlogic.gdx.math.Vector2 vec)
      In Game coords
    • getArea

      public com.badlogic.gdx.math.Rectangle getArea()
      Returns:
      the region that is selected
    • getItems

      public com.badlogic.gdx.utils.Array<Item> getItems()
    • setItems

      public void setItems(com.badlogic.gdx.utils.Array<Item> items)
    • clearSelectedItems

      public void clearSelectedItems()
    • updateArea

      public void updateArea()
    • setNewArea

      public void setNewArea(com.badlogic.gdx.math.Rectangle rectangle)
      Give me a rectangle in game coordinates.