Mattie

Untitled

Dec 17th, 2010
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. package bot_versie_10;
  2.  
  3. public class Debug
  4. {
  5.     private boolean debug   = true;
  6.  
  7.     public Debug()
  8.     {
  9.  
  10.     }
  11.  
  12.     public void log(String line)
  13.     {
  14.         if (debug)
  15.             System.out.println(line);
  16.     }
  17.  
  18.     public void activateDebug()
  19.     {
  20.         debug = true;
  21.     }
  22.  
  23.     public void stopDebug()
  24.     {
  25.         debug = false;
  26.     }
  27.    
  28.     public boolean getStatus()
  29.     {
  30.         return debug;
  31.     }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment