Update Constructor Title
update title on : - Cavalier.java - Fou.java - Piece.java - Pion.java - Reine.java - Roi.java - Tour.java
This commit is contained in:
parent
5acb2af73a
commit
3b22db3cd3
@ -2,8 +2,8 @@ package piecesEchiquier;
|
||||
|
||||
public class Cavalier extends Piece {
|
||||
|
||||
public Cavalier(boolean c, String emp,char l)
|
||||
public Cavalier(boolean couleur,char l, int x, int y)
|
||||
{
|
||||
super(c, emp,l);
|
||||
super(couleur, l, x, y);
|
||||
}
|
||||
}
|
||||
|
@ -2,8 +2,9 @@ package piecesEchiquier;
|
||||
|
||||
public class Fou extends Piece {
|
||||
|
||||
public Fou(boolean c, String emp,char l) {
|
||||
super(c, emp,l);
|
||||
public Fou(boolean couleur,char l, int x, int y)
|
||||
{
|
||||
super(couleur, l, x, y);
|
||||
}
|
||||
|
||||
|
||||
|
@ -22,12 +22,12 @@ public class Piece {
|
||||
|
||||
// constructeur
|
||||
|
||||
public Piece(boolean couleur,char l, int X, int Y)
|
||||
public Piece(boolean couleur,char l, int x, int y)
|
||||
{
|
||||
this.setCouleur(couleur);
|
||||
this.lettre = l;
|
||||
this.emplacement.setEmplacement(X, Y);
|
||||
this.depart.setEmplacement(X, Y);
|
||||
this.emplacement = new Position (x, y);
|
||||
this.depart = new Position(x, y);
|
||||
}
|
||||
|
||||
// gets & sets
|
||||
@ -42,11 +42,11 @@ public class Piece {
|
||||
|
||||
////////////
|
||||
|
||||
public String getEmplacement() {
|
||||
public Position getEmplacement() {
|
||||
return emplacement;
|
||||
}
|
||||
|
||||
public void setEmplacement(String emplacement) {
|
||||
public void setEmplacement(Position emplacement) {
|
||||
this.emplacement = emplacement;
|
||||
}
|
||||
|
||||
|
@ -2,8 +2,9 @@ package piecesEchiquier;
|
||||
|
||||
public class Pion extends Piece {
|
||||
|
||||
public Pion(String c, String emp,char l) {
|
||||
super(c,emp,l);
|
||||
public Pion(boolean couleur,char l, int x, int y)
|
||||
{
|
||||
super(couleur, l, x, y);
|
||||
}
|
||||
|
||||
|
||||
|
@ -2,7 +2,8 @@ package piecesEchiquier;
|
||||
|
||||
public class Reine extends Piece {
|
||||
|
||||
public Reine(boolean c, String emp,char l) {
|
||||
super(c, emp,l);
|
||||
public Reine(boolean couleur,char l, int x, int y)
|
||||
{
|
||||
super(couleur, l, x, y);
|
||||
}
|
||||
}
|
||||
|
@ -2,13 +2,14 @@ package piecesEchiquier;
|
||||
|
||||
public class Roi extends Piece {
|
||||
|
||||
public Roi(String c, String emp, char l) {
|
||||
super(c, emp,l);
|
||||
public Roi(boolean couleur,char l, int x, int y)
|
||||
{
|
||||
super(couleur, l, x, y);
|
||||
}
|
||||
|
||||
public void enEchec() {
|
||||
int[][] positionCourante;
|
||||
positionCourante=Piece.getPositionCourante();
|
||||
Position positionCourante;
|
||||
positionCourante= super.getEmplacement();
|
||||
|
||||
}
|
||||
|
||||
|
@ -2,9 +2,9 @@ package piecesEchiquier;
|
||||
|
||||
public class Tour extends Piece {
|
||||
|
||||
|
||||
public Tour(String c, String emp, char l) {
|
||||
super(c, emp,l);
|
||||
public Tour(boolean couleur,char l, int x, int y)
|
||||
{
|
||||
super(couleur, l, x, y);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user