Added much needed method.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@222 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2007-03-03 08:32:18 +00:00
parent 70b9c7e43b
commit 2e80b4f96b
@@ -54,6 +54,19 @@ public class SeatingControl extends SubControl
return (_ctrl.callEZCodeFriend("getPlayers_v1") as Array); return (_ctrl.callEZCodeFriend("getPlayers_v1") as Array);
} }
/**
* Get the names of the seated players, omitting any watchers.
*/
public function getPlayerNames () :Array /* of String */
{
return getPlayerIds().map(
function (playerId :int, o2:*, o3:*) :String
{
return _ctrl.getOccupantName(playerId);
}
);
}
// TODO: methods for allowing a player to pick a seat // TODO: methods for allowing a player to pick a seat
} }
} }