Allow the game manager we create to be augmented.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@484 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -37,7 +37,6 @@ import com.threerings.parlor.client.ParlorService;
|
|||||||
import com.threerings.parlor.data.ParlorCodes;
|
import com.threerings.parlor.data.ParlorCodes;
|
||||||
import com.threerings.parlor.data.TableConfig;
|
import com.threerings.parlor.data.TableConfig;
|
||||||
import com.threerings.parlor.game.data.GameConfig;
|
import com.threerings.parlor.game.data.GameConfig;
|
||||||
import com.threerings.parlor.game.server.GameManager;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The parlor manager is responsible for the parlor services in aggregate. This includes
|
* The parlor manager is responsible for the parlor services in aggregate. This includes
|
||||||
@@ -117,7 +116,7 @@ public class ParlorManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create the game manager and begin its initialization process
|
// create the game manager and begin its initialization process
|
||||||
CrowdServer.plreg.createPlace(config);
|
createGameManager(config);
|
||||||
|
|
||||||
// the game manager will notify the player that their game is
|
// the game manager will notify the player that their game is
|
||||||
// "ready", but tell the caller that we processed their request
|
// "ready", but tell the caller that we processed their request
|
||||||
@@ -254,7 +253,7 @@ public class ParlorManager
|
|||||||
|
|
||||||
// create the game manager and begin it's initialization process; the game manager will
|
// 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
|
// take care of notifying the players that the game has been created
|
||||||
_plreg.createPlace(invite.config);
|
createGameManager(invite.config);
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.warning("Unable to create game manager [invite=" + invite + ", error=" + e + "].");
|
Log.warning("Unable to create game manager [invite=" + invite + ", error=" + e + "].");
|
||||||
@@ -262,6 +261,15 @@ public class ParlorManager
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Called to create our game managers.
|
||||||
|
*/
|
||||||
|
protected void createGameManager (GameConfig config)
|
||||||
|
throws InstantiationException, InvocationException
|
||||||
|
{
|
||||||
|
_plreg.createPlace(config);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The invitation record is used by the parlor manager to keep track of pending invitations.
|
* The invitation record is used by the parlor manager to keep track of pending invitations.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user