コード例 #1
0
ファイル: Game.java プロジェクト: ritcat14/GotYourSix
 public synchronized void stop() { // Stops the Thread
   running = false;
   try {
     thread.join();
   } catch (InterruptedException e) {
     e.printStackTrace(); // Catches any errors if the Thread crashes
   }
 }
コード例 #2
0
ファイル: Game.java プロジェクト: ritcat14/GotYourSix
 public synchronized void start() { // Starts the Thread running
   running = true;
   thread = new Thread(this, "Display"); // Initialises the Thread
   thread.start(); // Runs the Thread=
 }