Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 7th, 2020 122 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package santasWorkshop.models.classes;
  2.  
  3. public class Sleepy extends BaseDwarf {
  4.     private static final int ENERGY=50;
  5.     protected Sleepy(String name) {
  6.         super(name, ENERGY);
  7.     }
  8.  
  9.     @Override
  10.     public void work() {
  11.         int enr=this.getEnergy()-15;
  12.  
  13.         if (enr<=0){
  14.             super.setEnergy(0);
  15.         }else {
  16.             super.setEnergy(enr);
  17.         }
  18.  
  19.     }
  20.  
  21.  
  22.  
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top