Skip to content
Snippets Groups Projects
Select Git revision
  • 111a0682ce6e00b02e12eec1cc9f12ea2c1a965e
  • master default protected
2 results

README.md

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