moved the incrementation of roundId into gameWillStart()
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1723 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: GameManager.java,v 1.41 2002/09/18 04:01:29 shaper Exp $
|
// $Id: GameManager.java,v 1.42 2002/09/20 02:30:11 ray Exp $
|
||||||
|
|
||||||
package com.threerings.parlor.game;
|
package com.threerings.parlor.game;
|
||||||
|
|
||||||
@@ -409,6 +409,9 @@ public class GameManager extends PlaceManager
|
|||||||
*/
|
*/
|
||||||
protected void gameWillStart ()
|
protected void gameWillStart ()
|
||||||
{
|
{
|
||||||
|
// increment the round identifier
|
||||||
|
_gameobj.setRoundId(_gameobj.roundId + 1);
|
||||||
|
|
||||||
// let our delegates do their business
|
// let our delegates do their business
|
||||||
applyToDelegates(new DelegateOp() {
|
applyToDelegates(new DelegateOp() {
|
||||||
public void apply (PlaceManagerDelegate delegate) {
|
public void apply (PlaceManagerDelegate delegate) {
|
||||||
@@ -531,9 +534,6 @@ public class GameManager extends PlaceManager
|
|||||||
// let the derived class do its pre-reset stuff
|
// let the derived class do its pre-reset stuff
|
||||||
gameWillReset();
|
gameWillReset();
|
||||||
|
|
||||||
// increment the round identifier
|
|
||||||
_gameobj.setRoundId(_gameobj.roundId + 1);
|
|
||||||
|
|
||||||
// do the standard game start processing
|
// do the standard game start processing
|
||||||
gameWillStart();
|
gameWillStart();
|
||||||
_gameobj.setState(GameObject.IN_PLAY);
|
_gameobj.setState(GameObject.IN_PLAY);
|
||||||
|
|||||||
Reference in New Issue
Block a user