Allow GameManagers to trivially override the message displayed when someone's

game ends.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@282 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Dave Hoover
2007-04-19 03:19:59 +00:00
parent b75acdf89e
commit 7c28390287
@@ -1084,9 +1084,16 @@ public class GameManager extends PlaceManager
*/
protected void announcePlayerGameOver (int pidx)
{
String message = MessageBundle.tcompose(
"m.player_game_over", getPlayerName(pidx));
systemMessage(GAME_MESSAGE_BUNDLE, message);
systemMessage(GAME_MESSAGE_BUNDLE,
MessageBundle.tcompose(getPlayerGameOverMessage(pidx), getPlayerName(pidx)));
}
/**
* Gets the untranslated string to show when a player's game has ended.
*/
protected String getPlayerGameOverMessage (int pidx)
{
return "m.player_game_over";
}
/**