Retrieving cards

This commit is contained in:
Paul Gross
2020-05-06 14:39:43 +02:00
parent 70a214248d
commit 9885ed12ca
14 changed files with 371 additions and 215 deletions

View File

@ -20,6 +20,7 @@ public class Allie extends Unique{
*/
private static final long serialVersionUID = 8822533547275463314L;
public Allie(Joueur joueur) {
super("ALLIE","desc", 8, joueur);

View File

@ -18,6 +18,14 @@ public class Charles extends CartePersonnage{
}
public Charles() {
super("Charles", "desc", 11, null);
Action action = new ActionAltererStatistiquesJoueur("HP",-2,true);
Effet effet = new EffetSelf(action);
this.setEffet(effet);
}
@Override
public void attaquer(Joueur j, int blessure) {

View File

@ -20,7 +20,23 @@ public class Daniel extends CartePersonnage{
public static final int HP = 13;
public Daniel() {
super("Daniel","desc", HP, null);
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(Joueur j) {
super("Daniel","desc", HP, j);
List<Condition> conditions = new ArrayList<Condition>();
@ -58,6 +74,8 @@ public class Daniel extends CartePersonnage{
public void utiliser() {
this.getJoueur().reveal();
}

View File

@ -7,6 +7,12 @@ public class Emi extends CartePersonnage{
public static final int HP = 13;
public Emi() {
super("EMI","desc", HP, null);
this.setCondition(new WinConditionHunter());
}
public Emi(Joueur j) {
super("EMI","desc", HP, j);
@ -24,6 +30,8 @@ public class Emi extends CartePersonnage{
public void deplacer() {
}

View File

@ -6,6 +6,11 @@ import main.Plateau;
public class Georges extends Unique{
public Georges() {
super("Franklin", "desc", 14, null);
this.setCondition(new WinConditionHunter());
this.setEquipe(CartePersonnage.Equipe.HUNTER);
}
public Georges(Joueur joueur) {
super("Franklin", "desc", 14, joueur);
@ -19,6 +24,8 @@ public class Georges extends Unique{
this.setEquipe(CartePersonnage.Equipe.HUNTER);
}
public void utiliser() {
Joueur joueur = this.getJoueur();

View File

@ -5,8 +5,18 @@ import main.Joueur;
public class LoupGarou extends CartePersonnage {
/**
*
*/
public static final int HP = 14;
public LoupGarou() {
super("LOUP-GAROU","desc", HP, null);
this.setCondition(new WinConditionShadow());
this.setEquipe(CartePersonnage.Equipe.SHADOW);
}
public LoupGarou(Joueur j) {
super("LOUP-GAROU","desc", HP, j);
this.setCondition(new WinConditionShadow());
@ -19,8 +29,6 @@ public class LoupGarou extends CartePersonnage {
this.setCondition(new WinConditionShadow());
}
public void utiliser() {
}

View File

@ -11,6 +11,11 @@ public class Metamorphe extends CartePersonnage{
private static final long serialVersionUID = 8415184267445994107L;
public final static int HP = 11;
public Metamorphe() {
super("METAMORPHE","desc", HP, null);
this.setCondition(new WinConditionShadow());
}
public Metamorphe(Joueur j) {
super("METAMORPHE","desc", HP, j);
this.setCondition(new WinConditionShadow());
@ -21,8 +26,6 @@ public class Metamorphe extends CartePersonnage{
this.setCondition(new WinConditionShadow());
}
public void utiliser() {
}
}