From a9316fb802fd29051fde6e62652dcd1ab100f0e5 Mon Sep 17 00:00:00 2001 From: Louis MALTERRE <malterre.louis@laposte.net> Date: Thu, 1 Dec 2022 16:06:31 +0100 Subject: [PATCH] un peu d'ordre dans entity LM --- MAVENProject/src/main/java/entity/Entity.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/MAVENProject/src/main/java/entity/Entity.java b/MAVENProject/src/main/java/entity/Entity.java index c26b7bc..ea3ad97 100644 --- a/MAVENProject/src/main/java/entity/Entity.java +++ b/MAVENProject/src/main/java/entity/Entity.java @@ -35,24 +35,31 @@ public abstract class Entity { public Coordonnees getCoord(){ return this.coord; } // Pour retourner les coordonées + public void setCoord(Coordonnees coord) { this.coord = coord; } + public double getEntityWIDTH() { return entityWIDTH; } + public double getEntityHEIGHT() { return entityHEIGHT; } + public Coordonnees getOldCoord() { return oldCoord; } + public HitBox getHitBox() { return hitBox; } + public int getNbLifePoints() { return nbLifePoints; } + public void setNbLifePoints(int nbLifePoints) { this.nbLifePoints = nbLifePoints; } @@ -60,12 +67,15 @@ public abstract class Entity { public void setHitBox(HitBox hitBox) { this.hitBox = hitBox; } + public double getVitesseMax() { return vitesseMax; } + public int getMaxLifePoints() { return maxLifePoints; } + public int getAlpha() { return alpha; } -- GitLab