Skip to content
Snippets Groups Projects
Select Git revision
  • 45e2dd3e7caff4aaa09f2ed9bb1044bf9307d4b0
  • master default protected
2 results

Energy.java

Blame
  • 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;
        }
    }