hp des cartes

This commit is contained in:
marc barbier
2021-01-06 17:37:49 +01:00
parent a8fde43596
commit e37bc7f1b3
6 changed files with 13 additions and 1 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
+4
View File
@@ -28,4 +28,8 @@ public final class Command {
public static final String BATTLE = "battlephase"; public static final String BATTLE = "battlephase";
public static final String SET_ENEMY_HP = "setenemhp"; public static final String SET_ENEMY_HP = "setenemhp";
public static final String SET_HP = "sethp"; public static final String SET_HP = "sethp";
public static final String SET_CARD_HP = "setcardhp";
public static final String SET_ADV_CARD_HP = "setadvcardhp";
} }
+8
View File
@@ -374,6 +374,14 @@ public class Joueur {
// appelle les effet de quand la carte est détruite // appelle les effet de quand la carte est détruite
// NOTE : non implémenter dans les cartes individuelles par manque de temps // NOTE : non implémenter dans les cartes individuelles par manque de temps
attackedCard.onCardDestroyed(); attackedCard.onCardDestroyed();
}else {
adversaire.getComs().send(Command.SET_CARD_HP);
adversaire.getComs().send(carteCible);
adversaire.getComs().send(attackedCard.getHealth());
this.getComs().send(Command.SET_ADV_CARD_HP);
this.getComs().send(carteCible);
this.getComs().send(attackedCard.getHealth());
} }
} }
+1 -1
View File
@@ -22,7 +22,7 @@ public class Match extends Thread {
joueur1.requestDataEarlyGameData(); joueur1.requestDataEarlyGameData();
joueur2.requestDataEarlyGameData(); joueur2.requestDataEarlyGameData();
Thread connect = new Thread(); Thread connect = new Thread();
connect.run(); connect.start();
System.out.println("ready"); System.out.println("ready");
start(); start();
} }