diff --git a/src/as/com/threerings/ezgame/EZGameControl.as b/src/as/com/threerings/ezgame/EZGameControl.as index 06a2721e..dbfd3f9c 100644 --- a/src/as/com/threerings/ezgame/EZGameControl.as +++ b/src/as/com/threerings/ezgame/EZGameControl.as @@ -570,12 +570,13 @@ public class EZGameControl extends BaseControl } /** - * End the current turn. If no next player id is specified, then the next player after the - * current one is used. + * Start the next player's turn. If a playerId is specified, that player's turn will be + * next. Otherwise the turn will progress to the next natural turn holder (following + * seating order) or be assigned randomly if the game is just starting. */ - public function endTurn (nextPlayerId :int = 0) :void + public function startNextTurn (nextPlayerId :int = 0) :void { - callEZCode("endTurn_v2", nextPlayerId); + callEZCode("startNextTurn_v1", nextPlayerId); } /** diff --git a/src/as/com/threerings/ezgame/client/GameControlBackend.as b/src/as/com/threerings/ezgame/client/GameControlBackend.as index 1f3ccfd3..5b4301d4 100644 --- a/src/as/com/threerings/ezgame/client/GameControlBackend.as +++ b/src/as/com/threerings/ezgame/client/GameControlBackend.as @@ -502,7 +502,7 @@ public class GameControlBackend o["getMyId_v1"] = getMyId_v1; o["getControllerId_v1"] = getControllerId_v1; o["getUserCookie_v2"] = getUserCookie_v2; - o["endTurn_v2"] = endTurn_v2; + o["startNextTurn_v1"] = startNextTurn_v1; o["endRound_v1"] = endRound_v1; o["endGame_v2"] = endGame_v2; o["restartGameIn_v1"] = restartGameIn_v1; @@ -516,6 +516,9 @@ public class GameControlBackend o["startTransaction"] = startTransaction_v1; o["commitTransaction"] = commitTransaction_v1; + + // compatability + o["endTurn_v2"] = startNextTurn_v1; // it's the same! } /** @@ -743,7 +746,7 @@ public class GameControlBackend return _ezObj.isInPlay(); } - protected function endTurn_v2 (nextPlayerId :int) :void + protected function startNextTurn_v1 (nextPlayerId :int) :void { validateConnected(); _ezObj.ezGameService.endTurn(