Amélioration commit

This commit is contained in:
clement
2021-01-06 18:34:39 +01:00
parent 1bd6eeb7b8
commit 2bec651133
6 changed files with 25 additions and 18 deletions
+6 -6
View File
@@ -4,7 +4,7 @@ public abstract class Card{
private int attack;
private int health;
private boolean notPlay=true;
private boolean hasAttacked=true;
public Card() {
attack = getDefaultAttack();
@@ -78,16 +78,16 @@ public abstract class Card{
return health == 0;
}
public boolean alreadyAttack() {
return notPlay;
public boolean hasAlreadyAttacked() {
return hasAttacked;
}
public void haveAttack() {
notPlay = false;
public void hasAttacked() {
hasAttacked = true;
}
public void resetAttack() {
notPlay=true;
hasAttacked=false;
}
}