Added EZGame.getPlayerCount().
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@98 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -132,6 +132,11 @@ public interface EZGame
|
||||
*/
|
||||
function localChat (msg :String) :void;
|
||||
|
||||
/**
|
||||
* Get the number of players currently in the game.
|
||||
*/
|
||||
function getPlayerCount () :int;
|
||||
|
||||
/**
|
||||
* Get the player names, as an array.
|
||||
*/
|
||||
|
||||
@@ -217,6 +217,12 @@ public class GameObjectImpl extends EventDispatcher
|
||||
_ctx.getChatDirector().displayInfo(null, MessageBundle.taint(msg));
|
||||
}
|
||||
|
||||
// from EZGame
|
||||
public function getPlayerCount () :int
|
||||
{
|
||||
return _ezObj.getPlayerCount();
|
||||
}
|
||||
|
||||
// from EZGame
|
||||
public function getPlayerNames () :Array
|
||||
{
|
||||
|
||||
@@ -135,6 +135,11 @@ public interface EZGame
|
||||
*/
|
||||
public void localChat (String msg);
|
||||
|
||||
/**
|
||||
* Get the number of players currently in the game.
|
||||
*/
|
||||
public int getPlayerCount ();
|
||||
|
||||
/**
|
||||
* Get the player names, as an array.
|
||||
*/
|
||||
|
||||
@@ -201,6 +201,12 @@ public class GameObjectImpl
|
||||
_ctx.getChatDirector().displayInfo(null, MessageBundle.taint(msg));
|
||||
}
|
||||
|
||||
// from EZGame
|
||||
public int getPlayerCount ()
|
||||
{
|
||||
return _ezObj.getPlayerCount();
|
||||
}
|
||||
|
||||
// from EZGame
|
||||
public String[] getPlayerNames ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user