update Tour.java
suppression méthode aBouge() car présente dansclasse parente.
This commit is contained in:
parent
70739853c7
commit
8f6df580b0
@ -1,26 +1,12 @@
|
||||
package piecesEchiquier;
|
||||
|
||||
public class Tour extends Piece {
|
||||
private boolean verif=false;
|
||||
|
||||
public Tour(String couleur,String l, Position pos)
|
||||
{
|
||||
super(couleur,l,pos);
|
||||
}
|
||||
|
||||
public boolean aBouge()
|
||||
{
|
||||
if(this.getIni() != this.getPosition())
|
||||
{
|
||||
verif=true;
|
||||
}
|
||||
if(this.getIni() == this.getPosition() && verif == false)
|
||||
{
|
||||
verif=false;
|
||||
}
|
||||
return verif;
|
||||
}
|
||||
|
||||
public boolean[][] deplacable(Echiquier e,Piece p) {
|
||||
boolean[][] deplacementsInherentsPiece = new boolean[8][8];
|
||||
Position position = this.getPosition();
|
||||
|
Loading…
x
Reference in New Issue
Block a user