Advertisement
Guest User

Untitled

a guest
Dec 1st, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. package scripts.paa1.paa1InstructsReq;
  2.  
  3. import scripts.paa0.paa2ScriptReq.OverScript;
  4. import scripts.pab1.Interactable;
  5. import scripts.pzz9Base.Timer;
  6.  
  7. public class InstructHandler {
  8.  
  9.     Timer timer = new Timer(20);
  10.     int cycle = 0;
  11.        
  12.     public void update(Instruct instruct){             
  13.         timer.update();    
  14.         if(timer.isTimeUp(true)){              
  15.                 instruct.doTask(OverScript.getUtilities(cycle++));
  16.                 if(cycle >= 10){
  17.                     cycle = 0;
  18.                 }          
  19.         }
  20.         OverScript.ScriptSource.sleep(10);
  21.     }
  22.        
  23.    
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement