Interface Renderable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean contains​(java.awt.Point point)
      Determines if this entity contains the given point.
      void draw​(java.awt.Graphics2D g2d)
      Renders this entity onto the given graphics.
      java.awt.Point getCentralPoint()
      Gets the central point within the entity calculated using only visible model points.
      java.awt.Point getRandomPoint()
      Get a random point within the entity.
      java.awt.Point getRealCentralPoint()
      Gets the central point within the entity calculated using visible and non-visible model points.
      boolean isVisible()
      Gets if this entity is visible on screen.
    • Method Detail

      • isVisible

        boolean isVisible()
        Gets if this entity is visible on screen.
        Returns:
        true if visible, false otherwise
      • contains

        boolean contains​(java.awt.Point point)
        Determines if this entity contains the given point.
        Parameters:
        point - the point
        Returns:
        true if this entity contains the point, false otherwise
      • getRandomPoint

        java.awt.Point getRandomPoint()
        Get a random point within the entity.
        Returns:
        Point
      • draw

        void draw​(java.awt.Graphics2D g2d)
        Renders this entity onto the given graphics.
        Parameters:
        g2d - the graphics