Facebook
From Toxic Guinea Pig, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 240
  1. import java.awt.*;
  2.  
  3. public class User extends Thread {
  4.     Window window;
  5.     public User(Window window) {
  6.         this.window = window;
  7.     }
  8.     public void run() {
  9.         if(window.currentGame.getClass().equals(TwoPlayersGame.class)) {
  10.         ((TwoPlayersGame)window.currentGame).addTurn();
  11.         }
  12. //        else if(window.currentGame.getClass().equals(OnePlayerGame.class)) {
  13. //            ((OnePlayerGame)window.currentGame).setWhoseTurn(2);
  14. //        }
  15.  
  16.  
  17.     }
  18. }
  19.