2020-04-17 13:41:40 +02:00
|
|
|
|
package personnage;
|
|
|
|
|
|
2020-04-17 15:19:48 +02:00
|
|
|
|
import carte.CarteCondition;
|
2020-04-17 14:32:07 +02:00
|
|
|
|
import condition.Condition;
|
2020-04-17 13:41:40 +02:00
|
|
|
|
import main.Joueur;
|
|
|
|
|
|
2020-04-17 15:19:48 +02:00
|
|
|
|
public class CartePersonnage extends CarteCondition {
|
2020-04-17 13:41:40 +02:00
|
|
|
|
//attributs
|
|
|
|
|
private String nom;
|
|
|
|
|
private int hp;
|
|
|
|
|
private Joueur joueur;
|
2020-04-17 14:32:07 +02:00
|
|
|
|
private Condition condition;
|
2020-04-17 13:41:40 +02:00
|
|
|
|
|
|
|
|
|
//constructeurs
|
2020-04-17 14:32:07 +02:00
|
|
|
|
public CartePersonnage(String nom, int hp, Joueur joueur,Condition condition){
|
2020-04-17 13:41:40 +02:00
|
|
|
|
this.nom=nom;
|
|
|
|
|
this.hp=hp;
|
|
|
|
|
this.joueur=joueur;
|
2020-04-17 14:32:07 +02:00
|
|
|
|
this.condition=condition;
|
2020-04-17 13:41:40 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-04-17 15:19:48 +02:00
|
|
|
|
//m<>thodes
|
2020-04-17 13:41:40 +02:00
|
|
|
|
|
|
|
|
|
public void utiliser() {};
|
|
|
|
|
|
|
|
|
|
public void attaquer(Joueur j) {};
|
|
|
|
|
|
|
|
|
|
public boolean victoire(){
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Joueur getJoueur() {
|
|
|
|
|
return joueur;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public void setJoueur(Joueur j) {
|
|
|
|
|
joueur=j;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public void deplacer() {
|
|
|
|
|
|
|
|
|
|
}
|
2020-04-17 15:19:48 +02:00
|
|
|
|
|
|
|
|
|
public void setEffet()
|
|
|
|
|
{
|
|
|
|
|
// TODO
|
|
|
|
|
}
|
2020-04-17 13:41:40 +02:00
|
|
|
|
|
|
|
|
|
}
|