Add increment function

This commit is contained in:
Katchan 2021-10-28 23:18:31 +02:00
parent 785e28e6a9
commit 19e5f19b19
2 changed files with 5 additions and 0 deletions

View File

@ -78,4 +78,8 @@ public abstract class AbstractPlayer implements Player {
public void decrementEnergy(int energy){
this.energy -= energy;
}
public void incrementEnergy(int energy){
this.energy += energy;
}
}

View File

@ -19,4 +19,5 @@ public interface Player {
ClassPlayer getClassPlayer();
void setPoint(Point point);
void decrementEnergy(int energy);
void incrementEnergy(int energy);
}