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