Split off functionality of updating a player's board status and broadcasting it to its own function so that just that can be overridden.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3768 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -117,6 +117,15 @@ public abstract class PuzzleManager extends GameManager
|
||||
{
|
||||
super.playerGameDidEnd(pidx);
|
||||
|
||||
updateSummaryOnDeath(pidx);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the board summary for a player who has been eliminated and
|
||||
* performs an update to communicate this change.
|
||||
*/
|
||||
protected void updateSummaryOnDeath (int pidx)
|
||||
{
|
||||
if (!isAI(pidx)) {
|
||||
// update the board summary with the player's final board
|
||||
updateBoardSummary(pidx);
|
||||
|
||||
Reference in New Issue
Block a user