Which game you talkin' 'bout Willis?
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3641 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -96,7 +96,7 @@ public class TurnGameManagerDelegate extends GameManagerDelegate
|
|||||||
// sanity check
|
// sanity check
|
||||||
if (_turnIdx < 0 || _turnIdx >= _turnGame.getPlayers().length) {
|
if (_turnIdx < 0 || _turnIdx >= _turnGame.getPlayers().length) {
|
||||||
Log.warning("startTurn() called with invalid turn index " +
|
Log.warning("startTurn() called with invalid turn index " +
|
||||||
"[turnIdx=" + _turnIdx + "].");
|
"[game=" + where() + ", turnIdx=" + _turnIdx + "].");
|
||||||
// abort, abort
|
// abort, abort
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -105,7 +105,7 @@ public class TurnGameManagerDelegate extends GameManagerDelegate
|
|||||||
Name name = _tgmgr.getPlayerName(_turnIdx);
|
Name name = _tgmgr.getPlayerName(_turnIdx);
|
||||||
if (name == null) {
|
if (name == null) {
|
||||||
Log.warning("startTurn() called with invalid player " +
|
Log.warning("startTurn() called with invalid player " +
|
||||||
"[turnIdx=" + _turnIdx + "].");
|
"[game=" + where() + ", turnIdx=" + _turnIdx + "].");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -184,7 +184,8 @@ public class TurnGameManagerDelegate extends GameManagerDelegate
|
|||||||
while (!_tgmgr.isActivePlayer(_turnIdx)) {
|
while (!_tgmgr.isActivePlayer(_turnIdx)) {
|
||||||
_turnIdx = (_turnIdx + 1) % size;
|
_turnIdx = (_turnIdx + 1) % size;
|
||||||
if (_turnIdx == firstPick) {
|
if (_turnIdx == firstPick) {
|
||||||
Log.warning("No players eligible for first turn. Choking.");
|
Log.warning("No players eligible for first turn. Choking. " +
|
||||||
|
"[game=" + where() + "].");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -213,7 +214,7 @@ public class TurnGameManagerDelegate extends GameManagerDelegate
|
|||||||
// if we've wrapped all the way around, stop where we are
|
// if we've wrapped all the way around, stop where we are
|
||||||
// even if the current player is not active.
|
// even if the current player is not active.
|
||||||
Log.warning("1 or less active players. Unable to properly " +
|
Log.warning("1 or less active players. Unable to properly " +
|
||||||
"change turn.");
|
"change turn. [game=" + where() + "].");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} while (!_tgmgr.isActivePlayer(_turnIdx));
|
} while (!_tgmgr.isActivePlayer(_turnIdx));
|
||||||
|
|||||||
Reference in New Issue
Block a user