| Package | com.whirled.game |
| Class | public class SeatingSubControl |
| Inheritance | SeatingSubControl AbstractSubControl AbstractControl flash.events.EventDispatcher |
| Method | Defined by | ||
|---|---|---|---|
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener.
| AbstractControl | |
![]() |
doBatch(fn:Function, ... args):void
Execute the specified function as a batch of commands that will be sent to the server
together.
| AbstractSubControl | |
|
getMyPosition():int
A convenient function to get our own player position,
or -1 if we're not a player.
| SeatingSubControl | ||
|
getPlayerIds():Array
Get all the players at the table, in their seated position.
| SeatingSubControl | ||
|
getPlayerNames():Array
Get the names of the seated players, in the order of their seated position.
| SeatingSubControl | ||
|
getPlayerPosition(playerId:int):int
Get the player's position (seated index), or -1 if not a player.
| SeatingSubControl | ||
![]() |
isConnected():Boolean
Are we connected and running inside the whirled environment, or has someone just
loaded up our SWF by itself?
| AbstractSubControl | |
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Unregisters an event listener.
| AbstractControl | |
| getMyPosition | () | method |
public function getMyPosition():intA convenient function to get our own player position, or -1 if we're not a player.
Returnsint |
| getPlayerIds | () | method |
public function getPlayerIds():ArrayGet all the players at the table, in their seated position. Note that the number of seats never changes during a game, even as players come and go. Absent players will be represented by a 0.
ReturnsArray — an Array of ints.
|
| getPlayerNames | () | method |
public function getPlayerNames():ArrayGet the names of the seated players, in the order of their seated position. Note that the number of seats never changes during a game, even as players come and go. Absent players will have a name of null.
ReturnsArray — an Array of Strings.
|
| getPlayerPosition | () | method |
public function getPlayerPosition(playerId:int):intGet the player's position (seated index), or -1 if not a player.
ParametersplayerId:int |
int |