Package test

Class CObstacle

java.lang.Object
test.CObstacle

public class CObstacle extends Object
  • Field Details

  • Constructor Details

    • CObstacle

      public CObstacle()
    • CObstacle

      public CObstacle(Rect obstacle)
    • CObstacle

      public CObstacle(float x, float y)
    • CObstacle

      public CObstacle(float x, float y, float w, float h)
    • CObstacle

      public CObstacle(ArrayList<Rect> list)
    • CObstacle

      public CObstacle(Rect[] list)
    • CObstacle

      public CObstacle(CObstacle cobstacle)
    • CObstacle

      public CObstacle(float[][] list)
    • CObstacle

      public CObstacle(float[] list)
  • Method Details

    • addObstacle

      public void addObstacle(Rect obstacle)
    • addObstacle

      public void addObstacle(float x, float y)
    • addObstacle

      public void addObstacle(float x, float y, float w, float h)
    • addObstacles

      public void addObstacles(ArrayList<Rect> list)
    • addObstacles

      public void addObstacles(Rect[] list)
    • addObstacles

      public void addObstacles(CObstacle cobstacle)
    • addObstacles

      public void addObstacles(float[][] list)
    • addObstacles

      public void addObstacles(float[] list)
    • isEmpty

      public boolean isEmpty()
    • cleanArray

      public void cleanArray()
    • display

      public void display(processing.core.PApplet app)
    • getObstacle

      public Rect getObstacle(int index)
    • getObstacleArray

      public float[] getObstacleArray(int index)
    • getArrayList

      public ArrayList<Rect> getArrayList()
    • getPerimeter

      public float getPerimeter()
    • getPath

      public Path getPath()
    • getCorner

      public Point getCorner(boolean topSide, boolean rightSide, boolean respectX)
    • getObstacleArray

      public Rect[] getObstacleArray()
    • get2DArray

      public float[][] get2DArray()
    • getFlatArray

      public float[] getFlatArray()
    • toString

      public String toString()
      Overrides:
      toString in class Object