Turn/GameManager now supports interface for checking whether a player
is still actively playing the game. The delegate now uses this when incrementing turns to skip over players not a part of the game (rather than needing this same code in the derived classes). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3390 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -354,6 +354,15 @@ public class GameManager extends PlaceManager
|
||||
return (_AIs != null && _AIs[pidx] != null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the player at the specified player index is actively
|
||||
* playing the game
|
||||
*/
|
||||
public boolean isActivePlayer (int pidx)
|
||||
{
|
||||
return _gameobj.isActivePlayer(pidx);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the unique round identifier for the current round.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user