private static void newGameT(object o)
 {
     GameConnection c = (GameConnection)o;
     GameInterface gi = new GameInterface();
     GUI.addGameWindow(gi);
     gi.connection = c;
     GameController g = new GameController(c, gi);
     gi.setGame(g);
     GUI.transitionToGame(gi);
     g.start(c.asHomePlayer());
 }
Example #2
0
 public void setGame(GameController g)
 {
     if (game != null) { throw new RowNotInTableException();}
     game = g;
 }
Example #3
0
 public void setGame(GameController g)
 {
     //hack this really isn't pretty
     game = g;
 }