Пример #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());
 }
Пример #2
0
 public void setGame(GameController g)
 {
     if (game != null) { throw new RowNotInTableException();}
     game = g;
 }
Пример #3
0
 public void setGame(GameController g)
 {
     //hack this really isn't pretty
     game = g;
 }