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()); }
public void setGame(GameController g) { if (game != null) { throw new RowNotInTableException();} game = g; }
public void setGame(GameController g) { //hack this really isn't pretty game = g; }