2020-04-17 11:26:23 +02:00
|
|
|
package main;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
public class Joueur {
|
|
|
|
private Map<String, Integer> stats = new HashMap<>();
|
|
|
|
private GestionnaireEquipements gestionnaireEquipements;
|
2020-04-17 13:41:40 +02:00
|
|
|
private boolean devoile;
|
|
|
|
|
|
|
|
//constructeurs
|
|
|
|
public Joueur(boolean devoile) {
|
|
|
|
this.devoile=devoile;
|
|
|
|
}
|
2020-04-17 11:26:23 +02:00
|
|
|
|
|
|
|
//shadows, hunters ou neutre
|
|
|
|
public String getEquipe() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getHP() {
|
|
|
|
return stats.get("HP");
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getDamage() {
|
|
|
|
return stats.get("DAMAGE");
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getNbEquipments() {
|
|
|
|
return gestionnaireEquipements.getNbEquipments();
|
|
|
|
}
|
2020-04-17 13:41:40 +02:00
|
|
|
|
|
|
|
public boolean isDevoile() {
|
|
|
|
return devoile;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setDevoile(boolean devoile) {
|
|
|
|
this.devoile = devoile;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Map<String, Integer> getStats() {
|
|
|
|
return stats;
|
|
|
|
}
|
|
|
|
|
|
|
|
public GestionnaireEquipements getGestionnaireEquipements() {
|
|
|
|
return gestionnaireEquipements;
|
|
|
|
}
|
2020-04-17 11:26:23 +02:00
|
|
|
|
|
|
|
}
|