From 8f6df580b0662d63afc4f0f5b738015c51872aa8 Mon Sep 17 00:00:00 2001 From: Jose Srifi Date: Thu, 9 May 2019 10:27:45 +0200 Subject: [PATCH] update Tour.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit suppression méthode aBouge() car présente dansclasse parente. --- src/piecesEchiquier/Tour.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/piecesEchiquier/Tour.java b/src/piecesEchiquier/Tour.java index 5b49f6c..2c76222 100755 --- a/src/piecesEchiquier/Tour.java +++ b/src/piecesEchiquier/Tour.java @@ -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();