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:
Ray Greenwell
2006-10-05 01:45:16 +00:00
parent cdbc9dcfb0
commit 0ecfaac648
4 changed files with 22 additions and 0 deletions
+5
View File
@@ -132,6 +132,11 @@ public interface EZGame
*/ */
function localChat (msg :String) :void; function localChat (msg :String) :void;
/**
* Get the number of players currently in the game.
*/
function getPlayerCount () :int;
/** /**
* Get the player names, as an array. * Get the player names, as an array.
*/ */
@@ -217,6 +217,12 @@ public class GameObjectImpl extends EventDispatcher
_ctx.getChatDirector().displayInfo(null, MessageBundle.taint(msg)); _ctx.getChatDirector().displayInfo(null, MessageBundle.taint(msg));
} }
// from EZGame
public function getPlayerCount () :int
{
return _ezObj.getPlayerCount();
}
// from EZGame // from EZGame
public function getPlayerNames () :Array public function getPlayerNames () :Array
{ {
@@ -135,6 +135,11 @@ public interface EZGame
*/ */
public void localChat (String msg); public void localChat (String msg);
/**
* Get the number of players currently in the game.
*/
public int getPlayerCount ();
/** /**
* Get the player names, as an array. * Get the player names, as an array.
*/ */
@@ -201,6 +201,12 @@ public class GameObjectImpl
_ctx.getChatDirector().displayInfo(null, MessageBundle.taint(msg)); _ctx.getChatDirector().displayInfo(null, MessageBundle.taint(msg));
} }
// from EZGame
public int getPlayerCount ()
{
return _ezObj.getPlayerCount();
}
// from EZGame // from EZGame
public String[] getPlayerNames () public String[] getPlayerNames ()
{ {