EZGame API breakup. Possibly a little more to come.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@205 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2007-02-22 03:44:12 +00:00
parent 8a2539683b
commit 9e8dce3619
7 changed files with 254 additions and 159 deletions
@@ -0,0 +1,29 @@
package com.threerings.ezgame {
public class SeatingControl extends SubControl
{
public function SeatingControl (ctrl :EZGameControl)
{
super(ctrl);
}
/**
* Get the player's position (seated index), or -1 if not a player.
*/
public function getPlayerPosition (playerId :int) :int
{
return int(_ctrl.callEZCode("getPlayerPosition_v1", playerId));
}
/**
* Get all the players at the table, in their seated position.
* Absent players will be represented by a 0.
*/
public function getPlayerIds () :Array /* of playerId (int) */
{
return (_ctrl.callEZCode("getPlayers_v1") as Array);
}
// TODO: methods for allowing a player to pick a seat
}
}