minor change
This commit is contained in:
@ -15,6 +15,11 @@ import main.Plateau;
|
||||
|
||||
public class Allie extends Unique{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 8822533547275463314L;
|
||||
|
||||
public Allie(Joueur joueur) {
|
||||
super("ALLIE","desc", 8, joueur);
|
||||
|
||||
|
@ -8,6 +8,21 @@ import main.Joueur;
|
||||
|
||||
public class Bob extends CartePersonnage{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -5593891138436384632L;
|
||||
|
||||
public Bob() {
|
||||
super("BOB","desc", 10, null);
|
||||
Condition condition = new ConditionStatistiques(ConditionStatistiques.JOUEUR, Joueur.PLAYER_NB_EQUIPEMENTS, 5, ConditionStatistiques.MORE);
|
||||
this.setCondition(condition);
|
||||
|
||||
|
||||
EffetTarget effet = new EffetTarget(new ActionVoler(ActionVoler.VOLER));
|
||||
this.setEffet(effet);
|
||||
}
|
||||
|
||||
public Bob(Joueur joueur){
|
||||
super("BOB","desc", 10, joueur);
|
||||
Condition condition = new ConditionStatistiques(ConditionStatistiques.JOUEUR, Joueur.PLAYER_NB_EQUIPEMENTS, 5, ConditionStatistiques.MORE);
|
||||
|
@ -13,8 +13,33 @@ import main.Plateau;
|
||||
|
||||
public class Daniel extends CartePersonnage{
|
||||
|
||||
public Daniel(String nom, String desc ,int hp, Joueur joueur) throws Exception {
|
||||
super(nom,desc, hp, joueur);
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 6436431310604672660L;
|
||||
|
||||
public static final int HP = 13;
|
||||
|
||||
|
||||
public Daniel(Joueur j) {
|
||||
super("Daniel","desc", HP, j);
|
||||
List<Condition> conditions = new ArrayList<Condition>();
|
||||
List<Condition> conditions2 = new ArrayList<Condition>();
|
||||
|
||||
conditions.add(new WinConditionHunter());
|
||||
|
||||
conditions2.add(new ConditionStatistiques(ConditionStatistiques.JOUEUR, Joueur.PLAYER_HP, 0, ConditionStatistiques.LESS));
|
||||
conditions2.add(new ConditionStatistiques(ConditionStatistiques.PLATEAU, Plateau.NB_MORTS, 1, ConditionStatistiques.LESS));
|
||||
|
||||
conditions.add(new ConditionMultiple(conditions2));
|
||||
|
||||
Condition winCondition = new ConditionMultipleOR(conditions);
|
||||
|
||||
this.setCondition(winCondition);
|
||||
}
|
||||
|
||||
public Daniel(String nom, String desc , Joueur joueur) throws Exception {
|
||||
super(nom,desc,HP, joueur);
|
||||
|
||||
List<Condition> conditions = new ArrayList<Condition>();
|
||||
List<Condition> conditions2 = new ArrayList<Condition>();
|
||||
@ -31,6 +56,8 @@ public class Daniel extends CartePersonnage{
|
||||
this.setCondition(winCondition);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void utiliser() {
|
||||
this.getJoueur().reveal();
|
||||
}
|
||||
|
@ -4,6 +4,15 @@ import condition.WinConditionHunter;
|
||||
import main.Joueur;
|
||||
|
||||
public class Emi extends CartePersonnage{
|
||||
|
||||
public static final int HP = 13;
|
||||
|
||||
public Emi(Joueur j) {
|
||||
super("EMI","desc", HP, j);
|
||||
|
||||
this.setCondition(new WinConditionHunter());
|
||||
}
|
||||
|
||||
//constructeur
|
||||
public Emi(String nom, String desc ,int hp, Joueur joueur) {
|
||||
super(nom,desc, hp, joueur);
|
||||
@ -12,6 +21,9 @@ public class Emi extends CartePersonnage{
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public void deplacer() {
|
||||
|
||||
}
|
||||
|
@ -6,9 +6,17 @@ import main.Plateau;
|
||||
|
||||
public class Georges extends Unique{
|
||||
|
||||
|
||||
public Georges(Joueur joueur) {
|
||||
super("Franklin", "desc", 14, joueur);
|
||||
this.setCondition(new WinConditionHunter());
|
||||
this.setEquipe(CartePersonnage.Equipe.HUNTER);
|
||||
}
|
||||
|
||||
public Georges(String nom, int hp, Joueur joueur) {
|
||||
super(nom, nom, hp, joueur);
|
||||
this.setCondition(new WinConditionHunter());
|
||||
this.setEquipe(CartePersonnage.Equipe.HUNTER);
|
||||
}
|
||||
|
||||
public void utiliser() {
|
||||
|
@ -5,12 +5,22 @@ import main.Joueur;
|
||||
|
||||
public class LoupGarou extends CartePersonnage {
|
||||
|
||||
public static final int HP = 14;
|
||||
|
||||
public LoupGarou(Joueur j) {
|
||||
super("LOUP-GAROU","desc", HP, j);
|
||||
this.setCondition(new WinConditionShadow());
|
||||
this.setEquipe(CartePersonnage.Equipe.SHADOW);
|
||||
}
|
||||
|
||||
public LoupGarou(String nom, String desc ,int hp, Joueur joueur) {
|
||||
super(nom,desc, hp, joueur);
|
||||
|
||||
this.setCondition(new WinConditionShadow());
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void utiliser() {
|
||||
}
|
||||
|
||||
|
@ -5,11 +5,24 @@ import main.Joueur;
|
||||
|
||||
public class Metamorphe extends CartePersonnage{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 8415184267445994107L;
|
||||
public final static int HP = 11;
|
||||
|
||||
public Metamorphe(Joueur j) {
|
||||
super("METAMORPHE","desc", HP, j);
|
||||
this.setCondition(new WinConditionShadow());
|
||||
}
|
||||
|
||||
public Metamorphe(String nom, String desc ,int hp, Joueur joueur) {
|
||||
super(nom,desc, hp, joueur);
|
||||
this.setCondition(new WinConditionShadow());
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void utiliser() {
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user