119 lines
2.4 KiB
Java
Raw Normal View History

2020-04-17 16:04:44 +02:00
package main;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import carte.CarteLieu;
import effet.Effet;
2020-04-17 16:04:44 +02:00
public class Joueur {
private GestionnaireEquipements gestionnaireEquipements;
private String nom;
private boolean revele;
private Plateau plateau;
2020-04-17 16:04:44 +02:00
// map keys
public static final String PLAYER_HP = "hp";
public static final String PLAYER_TURN = "turn";
public static final String PLYAYER_DAMAGE = "damage";
public static final String PLAYER_RESISTANCE = "resistance";
public static final String PLAYER_REVEAL = "reveal";
public static final String PLAYER_IMMUNITY = "immunity";
private Map<String, Integer> stats;
public Joueur(String nom) {
this.nom = nom;
this.revele = false;
2020-04-17 16:04:44 +02:00
stats = new HashMap<>();
// Initialisation joueur depuis valeurs perso
//stats.put(PLAYER_HP, char.getHP());
//stats.put(PLAYER_TURN, 1);
//stats.put(PLAYER_DAMAGE, 0); - dégats en +
//stats.put(PLAYER_RESISTANCE, 0);
//stats.put(PLAYER_REVEAL, 0);
//stats.put(PLAYER_IMMUNITY, 0);
// immunité à certains effets?
}
2020-04-17 16:04:44 +02:00
//shadows, hunters ou neutre
public String getEquipe() {
return null;
}
public int setStat(String key, int valeur) {
return stats.put(key, valeur);
}
public int getStat(String key) {
return stats.get(key);
}
public int getNbEquipments() {
return gestionnaireEquipements.getNbEquipments();
}
public List<Joueur> getJoueursAdjacents() {
// TODO Auto-generated method stub
return null;
}
public List<Equipement> getEquipements() {
// TODO Auto-generated method stub
return null;
}
public void voler(Joueur j2, Equipement equipement) {
// TODO Auto-generated method stub
}
public Equipement choisir(Equipement[] equipements) {
// TODO Auto-generated method stub
return null;
}
public void piocher() {
// TODO Auto-generated method stub
}
public void attaquer(Joueur j2) {
// TODO Auto-generated method stub
}
public Plateau getPlateau() {
return this.plateau;
}
public Joueur choisirAdjacents() {
// TODO Auto-generated method stub
return null;
}
public Effet choisir(Effet[] effets) {
// TODO Auto-generated method stub
return null;
}
public boolean getRevele() {
return this.revele;
}
2020-04-17 16:04:44 +02:00
2020-04-18 14:05:53 +02:00
public Object getCartePersonnage() {
// TODO Auto-generated method stub
return null;
}
2020-04-17 16:04:44 +02:00
}