From 5132b3d16146cf9bec7241d2b988e50d77709ebd Mon Sep 17 00:00:00 2001 From: flavien Date: Tue, 16 Apr 2019 13:35:42 +0200 Subject: [PATCH] added basic functions --- JAVA/PROJET-PMT_STRI1A/src/modeles/Porte.java | 8 ++++++++ JAVA/PROJET-PMT_STRI1A/src/modeles/Salle.java | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/JAVA/PROJET-PMT_STRI1A/src/modeles/Porte.java b/JAVA/PROJET-PMT_STRI1A/src/modeles/Porte.java index 7077482..9581eb9 100644 --- a/JAVA/PROJET-PMT_STRI1A/src/modeles/Porte.java +++ b/JAVA/PROJET-PMT_STRI1A/src/modeles/Porte.java @@ -10,5 +10,13 @@ package modeles; public class Porte { private boolean ouvert; private char orientation; + + public boolean estOuverte() { + return ouvert; + } + + public char getOrientation() { + return orientation; + } } diff --git a/JAVA/PROJET-PMT_STRI1A/src/modeles/Salle.java b/JAVA/PROJET-PMT_STRI1A/src/modeles/Salle.java index b289db4..f3ec00a 100644 --- a/JAVA/PROJET-PMT_STRI1A/src/modeles/Salle.java +++ b/JAVA/PROJET-PMT_STRI1A/src/modeles/Salle.java @@ -11,5 +11,9 @@ public class Salle { private int positionX; private int positionY; private boolean sortie; + + public String getType(){ + return"type"; + } }