Let's rename that, because it will only return the index if the

player is actually in the game.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@39 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2006-08-11 23:30:45 +00:00
parent fc57d9bb8f
commit e10a3ae94d
@@ -375,9 +375,10 @@ public class GameManager extends PlaceManager
}
/**
* Is the specified oid that of a player in this game?
* Get the player index of the specified oid, or -1 if the oid is
* not a player or is a player that is not presently in the game.
*/
public int getPlayerIndex (int bodyOid)
public int getPresentPlayerIndex (int bodyOid)
{
return (_playerOids == null)
? -1