@@ -0,0 +1,1819 @@
+%0Apackage test_Astar;%0A%0Aimport java.awt.Color;%0A%0Apublic class Quadrado implements Comparable%3CQuadrado%3E%7B%0A%0A    private int custoG = 0;%0A    private int custoH = 9999;%0A    private int x = 0;%0A    private int y = 0;%0A    private Quadrado pai = null;%0A    private char terreno;%0A    private int custoTerreno = 0;%0A    private int poder = 0;%0A    private Color cor;%0A%0A    public Quadrado(int x, int y, char terreno) %7B%0A        this.x = x;%0A        this.y = y;%0A        this.terreno = terreno;%0A    %7D%0A%0A    public int getCustoF() %7B%0A        return custoG + custoH;%0A    %7D%0A%0A    public int getCustoG() %7B%0A        return custoG;%0A    %7D%0A%0A    public void setCustoG(int custoG) %7B%0A        this.custoG = custoG;%0A    %7D%0A%0A    public int getCustoH() %7B%0A        return custoH;%0A    %7D%0A%0A    public void setCustoH(int custoH) %7B%0A        this.custoH = custoH;%0A    %7D%0A%0A    public int getX() %7B%0A        return x;%0A    %7D%0A%0A    public void setPosicaoX(int x) %7B%0A        this.x = x;%0A    %7D%0A%0A    public int getY() %7B%0A        return y;%0A    %7D%0A%0A    public void setPosicaoY(int y) %7B%0A        this.y = y;%0A    %7D%0A%0A    public Quadrado getPai() %7B%0A        return pai;%0A    %7D%0A%0A    public void setPai(Quadrado pai) %7B%0A        this.pai = pai;%0A    %7D%0A   %0A    public char getTerreno() %7B%0A%09%09return terreno;%0A%09%7D%0A    %0A    public void setTerreno(char terreno) %7B%0A%09%09this.terreno = terreno;%0A%09%7D%0A    %0A    public int getCustoTerreno() %7B%0A%09%09return custoTerreno;%0A%09%7D%0A    %0A    public void setCustoTerreno(int custoTerreno) %7B%0A%09%09this.custoTerreno = custoTerreno;%0A%09%7D%0A    %0A    public int getPoder() %7B%0A%09%09return poder;%0A%09%7D%0A    %0A    public void setPoder(int poder) %7B%0A%09%09this.poder = poder;%0A%09%7D%0A    %0A    public Color getCor() %7B%0A%09%09return cor;%0A%09%7D%0A    %0A    public void setCor(Color cor) %7B%0A%09%09this.cor = cor;%0A%09%7D%0A%0A%09@Override%0A%09public int compareTo(Quadrado o) %7B%0A%09%09%0A%09%09return Integer.compare(this.getCustoF(),o.getCustoF());%0A%09%7D%0A    %0A%7D%0A

Create Quadrado.java