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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user