Select Git revision
Forked from
Toby Murray / swen90006-a2-2019
Source project has a limited visibility.
Energy.java 258 B
public class Energy {
private int value;
protected Energy(int energy) {
this.value = energy;
}
protected int getEnergy() {
return this.value;
}
protected void add(int amount) {
this.value += amount;
}
}