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:
@@ -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
|
* Start the next player's turn. If a playerId is specified, that player's turn will be
|
||||||
* current one is used.
|
* 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["getMyId_v1"] = getMyId_v1;
|
||||||
o["getControllerId_v1"] = getControllerId_v1;
|
o["getControllerId_v1"] = getControllerId_v1;
|
||||||
o["getUserCookie_v2"] = getUserCookie_v2;
|
o["getUserCookie_v2"] = getUserCookie_v2;
|
||||||
o["endTurn_v2"] = endTurn_v2;
|
o["startNextTurn_v1"] = startNextTurn_v1;
|
||||||
o["endRound_v1"] = endRound_v1;
|
o["endRound_v1"] = endRound_v1;
|
||||||
o["endGame_v2"] = endGame_v2;
|
o["endGame_v2"] = endGame_v2;
|
||||||
o["restartGameIn_v1"] = restartGameIn_v1;
|
o["restartGameIn_v1"] = restartGameIn_v1;
|
||||||
@@ -516,6 +516,9 @@ public class GameControlBackend
|
|||||||
|
|
||||||
o["startTransaction"] = startTransaction_v1;
|
o["startTransaction"] = startTransaction_v1;
|
||||||
o["commitTransaction"] = commitTransaction_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();
|
return _ezObj.isInPlay();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function endTurn_v2 (nextPlayerId :int) :void
|
protected function startNextTurn_v1 (nextPlayerId :int) :void
|
||||||
{
|
{
|
||||||
validateConnected();
|
validateConnected();
|
||||||
_ezObj.ezGameService.endTurn(
|
_ezObj.ezGameService.endTurn(
|
||||||
|
|||||||
Reference in New Issue
Block a user