Add increment function
This commit is contained in:
parent
785e28e6a9
commit
19e5f19b19
@ -78,4 +78,8 @@ public abstract class AbstractPlayer implements Player {
|
|||||||
public void decrementEnergy(int energy){
|
public void decrementEnergy(int energy){
|
||||||
this.energy -= energy;
|
this.energy -= energy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void incrementEnergy(int energy){
|
||||||
|
this.energy += energy;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,4 +19,5 @@ public interface Player {
|
|||||||
ClassPlayer getClassPlayer();
|
ClassPlayer getClassPlayer();
|
||||||
void setPoint(Point point);
|
void setPoint(Point point);
|
||||||
void decrementEnergy(int energy);
|
void decrementEnergy(int energy);
|
||||||
|
void incrementEnergy(int energy);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user