correction de la limitation d'une carte pour jouer

This commit is contained in:
clement
2021-01-06 18:09:08 +01:00
parent a8fde43596
commit 1bd6eeb7b8
6 changed files with 28 additions and 3 deletions
+13
View File
@@ -4,6 +4,7 @@ public abstract class Card{
private int attack;
private int health;
private boolean notPlay=true;
public Card() {
attack = getDefaultAttack();
@@ -76,5 +77,17 @@ public abstract class Card{
}
return health == 0;
}
public boolean alreadyAttack() {
return notPlay;
}
public void haveAttack() {
notPlay = false;
}
public void resetAttack() {
notPlay=true;
}
}