Advertisement
Tyluur

Untitled

Jun 27th, 2012
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. package com.sevador;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. public class Main implements Runnable {
  6.  
  7. /**
  8. * The instance of the logger in this class.
  9. */
  10. private static final Logger logger = Logger.getLogger(Main.class.getCanonicalName());
  11.  
  12. public static boolean GAME_RUNNING;
  13.  
  14. public static void main(String[] args) {
  15. GAME_RUNNING = true;
  16. new Thread(new Main()).run();
  17. }
  18.  
  19. @Override
  20. public void run() {
  21. Server.getServer().initalize();
  22. logger.info("[Initialization completed and server execution done.]");
  23. while (GAME_RUNNING) {
  24. //process tasks here in 600ms cycle
  25. }
  26. }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement