Added back a form of getPlayerPersistentId() that takes a BodyObject, for convenience.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@819 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2009-04-28 03:12:58 +00:00
parent 57faa7f72e
commit 7c028fa977
@@ -337,6 +337,14 @@ public class GameManager extends PlaceManager
return _userIder.getUserId(name);
}
/**
* Convenience for getting the persistent id from a body.
*/
public int getPlayerPersistentId (BodyObject body)
{
return getPlayerPersistentId(body.getVisibleName());
}
/**
* Returns the number of players in the game.
*/