Making callEZCode() 'internal' booched it for WorldGameControl.
Made it protected, added a second function for 'friend' access. We could use a custom namespace for this, too. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@206 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -12,7 +12,7 @@ public class SeatingControl extends SubControl
|
||||
*/
|
||||
public function getPlayerPosition (playerId :int) :int
|
||||
{
|
||||
return int(_ctrl.callEZCode("getPlayerPosition_v1", playerId));
|
||||
return int(_ctrl.callEZCodeFriend("getPlayerPosition_v1", playerId));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -21,7 +21,7 @@ public class SeatingControl extends SubControl
|
||||
*/
|
||||
public function getPlayerIds () :Array /* of playerId (int) */
|
||||
{
|
||||
return (_ctrl.callEZCode("getPlayers_v1") as Array);
|
||||
return (_ctrl.callEZCodeFriend("getPlayers_v1") as Array);
|
||||
}
|
||||
|
||||
// TODO: methods for allowing a player to pick a seat
|
||||
|
||||
Reference in New Issue
Block a user