Class ComponentCalculator

java.lang.Object
org.collebol.client.math.ComponentCalculator

public class ComponentCalculator extends Object
  • Constructor Details

    • ComponentCalculator

      public ComponentCalculator()
  • Method Details

    • getComponentUnderMouse

      public static List<Component> getComponentUnderMouse(Vector2D position, EJGEngine instance)
      Checks if there is a component below of the mouse.
      Returns:
      component list if there is a component else null.
    • checkIfSubComponent

      public static List<Component> checkIfSubComponent(Field parent, Vector2D position)
      Checks if there is a subcomponent of the given parent below the mouse.
      Parameters:
      parent - the given parent of the subcomponents. (Field)
      position -
      Returns:
      list of subcomponents.