Skip to content
Snippets Groups Projects
Commit 1af1f3b3 authored by Louis MALTERRE's avatar Louis MALTERRE
Browse files

encore un peu plus d'ordre LM

parent e85007cd
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ public class Character extends Entity{
super(c,vitesseMax,30,60); // comme tous les entities ont une hitbox, j'ai factorise
this.masse = m;
this.impulsionSaut = impSaut;
this.setHitBox(new HitBox(c,entityHEIGHT,entityWIDTH));
this.tableCommande = new HashMap<>();
tableCommande.put("CommandX",(double)0);
tableCommande.put("CommandZ",(double)0);
......
......@@ -4,9 +4,11 @@ import environnement.Coordonnees;
public class Monster extends Entity{
public Monster(Coordonnees c, double vitesseMax,double width,double height) {
private int attackStat; //nombre de points de vie enleves par une attaque
public Monster(Coordonnees c, double vitesseMax,double width,double height,int atkStt) {
super(c, vitesseMax,width,height);
//TODO Auto-generated constructor stub
attackStat = atkStt;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment