Renamed endTurn() to startNextTurn().

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@465 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2007-10-23 02:02:09 +00:00
parent 3bb6c7e3f6
commit 1d3a53757c
2 changed files with 10 additions and 6 deletions
@@ -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);
}
/**
@@ -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(