supression import inutile et patch refresh
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -207,6 +207,7 @@ public class Joueur {
|
|||||||
mana -= handCard.getCost();
|
mana -= handCard.getCost();
|
||||||
coms.send(mana);
|
coms.send(mana);
|
||||||
handCard.onCardPlaced(board);
|
handCard.onCardPlaced(board);
|
||||||
|
refreshAllCard(adversaire);
|
||||||
} else {
|
} else {
|
||||||
System.out.println("the zone is not avaliable");
|
System.out.println("the zone is not avaliable");
|
||||||
coms.send(Command.NOK);
|
coms.send(Command.NOK);
|
||||||
@@ -547,6 +548,28 @@ public class Joueur {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void refreshAllCard(Joueur adversaire) throws IOException {
|
||||||
|
int index = 0;
|
||||||
|
Iterator<Card> it = board.getIterator();
|
||||||
|
while(it.hasNext())
|
||||||
|
{
|
||||||
|
Card c = it.next();
|
||||||
|
if(c != null)
|
||||||
|
{
|
||||||
|
if(!(c.getHealth() == 0))
|
||||||
|
{
|
||||||
|
updateCardHp(c, adversaire);
|
||||||
|
updateCardAtk(c, adversaire);
|
||||||
|
}else {
|
||||||
|
destroyCard(index+"", adversaire);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
index++;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public Deck getDeck() {
|
public Deck getDeck() {
|
||||||
return deck;
|
return deck;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package game.cards.MoyenAge;
|
package game.cards.MoyenAge;
|
||||||
|
|
||||||
import game.cards.Card;
|
|
||||||
import game.cards.SpecialCard.VigilanceCard;
|
import game.cards.SpecialCard.VigilanceCard;
|
||||||
|
|
||||||
public class Moyen_Age_Etienne extends VigilanceCard{
|
public class Moyen_Age_Etienne extends VigilanceCard{
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package game.cards.MoyenAge;
|
package game.cards.MoyenAge;
|
||||||
|
|
||||||
import game.cards.Card;
|
|
||||||
import game.cards.SpecialCard.VigilanceCard;
|
import game.cards.SpecialCard.VigilanceCard;
|
||||||
|
|
||||||
public class Moyen_Age_Roland extends VigilanceCard{
|
public class Moyen_Age_Roland extends VigilanceCard{
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package game.cards.Mythes;
|
package game.cards.Mythes;
|
||||||
|
|
||||||
import game.cards.Card;
|
|
||||||
import game.cards.SpecialCard.StrongifyBufCard;
|
import game.cards.SpecialCard.StrongifyBufCard;
|
||||||
|
|
||||||
public class Mythes_Achille extends StrongifyBufCard{
|
public class Mythes_Achille extends StrongifyBufCard{
|
||||||
|
|||||||
Reference in New Issue
Block a user