From 371b0f8322af015621b80fd1b138fe1745e60cf2 Mon Sep 17 00:00:00 2001 From: rc804998 Date: Tue, 2 Apr 2019 17:20:48 +0200 Subject: [PATCH] Ajout classe Position --- src/piecesEchiquier/Position.java | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/piecesEchiquier/Position.java diff --git a/src/piecesEchiquier/Position.java b/src/piecesEchiquier/Position.java new file mode 100644 index 0000000..9b5883e --- /dev/null +++ b/src/piecesEchiquier/Position.java @@ -0,0 +1,34 @@ +package piecesEchiquier; + +public class Position { + private int ligne; + private int colonne; + + public Position() { + + } + + public Position(int x, int y) + { + ligne = x; + colonne = y; + } + + public int getLigne() { + return ligne; + } + + public void setLigne(int ligne) { + this.ligne = ligne; + } + + public int getColonne() { + return colonne; + } + + public void setColonne(int colonne) { + this.colonne = colonne; + } + + +}