hp des cartes
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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";
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user