From bf62f82fbb404c622ac078ab8a0479f0fa0f3fc0 Mon Sep 17 00:00:00 2001 From: Hugo Date: Fri, 17 Apr 2020 15:51:12 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20m=C3=A9thode=20setEffet/getEffet=20et?= =?UTF-8?q?=20r=C3=A9glage=20des=20imports=20Type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/carte/CarteEffet.java | 7 +++++++ src/carte/CarteLieu.java | 2 ++ src/carte/Equipement.java | 1 + 3 files changed, 10 insertions(+) diff --git a/src/carte/CarteEffet.java b/src/carte/CarteEffet.java index 63072f7..50d83e2 100644 --- a/src/carte/CarteEffet.java +++ b/src/carte/CarteEffet.java @@ -11,4 +11,11 @@ public abstract class CarteEffet extends Carte{ effet.utiliser(j); } + public void setEffet(Effet e) { + effet = e; + } + + public Effet getEffet() { + return effet; + } } diff --git a/src/carte/CarteLieu.java b/src/carte/CarteLieu.java index 920ed82..48a3e92 100644 --- a/src/carte/CarteLieu.java +++ b/src/carte/CarteLieu.java @@ -2,6 +2,8 @@ package carte; import java.util.List; import main.Joueur; +import main.Type; + public class CarteLieu extends CarteEffet{ diff --git a/src/carte/Equipement.java b/src/carte/Equipement.java index c117925..16e0441 100644 --- a/src/carte/Equipement.java +++ b/src/carte/Equipement.java @@ -1,6 +1,7 @@ package carte; import main.Joueur; +import main.Type; public class Equipement extends CartePiochable{