Allow that warning to be disabled for duty puzzles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2868 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: GameManager.java,v 1.67 2003/07/16 18:03:30 ray Exp $
|
// $Id: GameManager.java,v 1.68 2003/11/24 18:07:58 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.parlor.game;
|
package com.threerings.parlor.game;
|
||||||
|
|
||||||
@@ -555,10 +555,13 @@ public class GameManager extends PlaceManager
|
|||||||
|
|
||||||
// make sure everyone has turned up
|
// make sure everyone has turned up
|
||||||
if (!allPlayersReady()) {
|
if (!allPlayersReady()) {
|
||||||
Log.warning("Requested to start a game that is still " +
|
if (warnOnUnreadyStart()) {
|
||||||
"awaiting players [game=" + _gameobj.which() +
|
Log.warning(
|
||||||
", pnames=" + StringUtil.toString(_gameobj.players) +
|
"Requested to start a game that is still " +
|
||||||
", poids=" + StringUtil.toString(_playerOids) + "].");
|
"awaiting players [game=" + _gameobj.which() +
|
||||||
|
", pnames=" + StringUtil.toString(_gameobj.players) +
|
||||||
|
", poids=" + StringUtil.toString(_playerOids) + "].");
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -572,6 +575,16 @@ public class GameManager extends PlaceManager
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates whether or not we should issue a warning if {@link
|
||||||
|
* #startGame} is called on a game where all players have not yet
|
||||||
|
* reported in as ready.
|
||||||
|
*/
|
||||||
|
protected boolean warnOnUnreadyStart ()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when the game is about to start, but before the game start
|
* Called when the game is about to start, but before the game start
|
||||||
* notification has been delivered to the players. Derived classes
|
* notification has been delivered to the players. Derived classes
|
||||||
|
|||||||
Reference in New Issue
Block a user