No longer do we set the players in an explicit call to
GameManager.setPlayers(), now it is simply provided as part of the game config object which is cleaner and makes the information available during the initialization and permissions checking phases. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1778 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: TableManager.java,v 1.7 2002/08/14 19:07:54 mdb Exp $
|
||||
// $Id: TableManager.java,v 1.8 2002/10/06 00:53:15 mdb Exp $
|
||||
|
||||
package com.threerings.parlor.server;
|
||||
|
||||
@@ -262,6 +262,9 @@ public class TableManager
|
||||
try {
|
||||
Log.info("Creating game manager [config=" + config + "].");
|
||||
|
||||
// configure the game config with the players array
|
||||
config.players = players;
|
||||
|
||||
// create the game manager and begin it's initialization
|
||||
// process. the game manager will take care of notifying the
|
||||
// players that the game has been created once it has been
|
||||
@@ -269,9 +272,6 @@ public class TableManager
|
||||
// game object creation has completed)
|
||||
gmgr = (GameManager)CrowdServer.plreg.createPlace(config, this);
|
||||
|
||||
// provide the game manager with some initialization info
|
||||
gmgr.setPlayers(players);
|
||||
|
||||
} catch (Exception e) {
|
||||
Log.warning("Unable to create game manager [config=" + config +
|
||||
", players=" + StringUtil.toString(players) + "].");
|
||||
|
||||
Reference in New Issue
Block a user