Packagecom.whirled.contrib.card
Classpublic class Team

Contains the players on a card game team.



Public Properties
 PropertyDefined by
  index : int
[read-only] Access the index of this team in the containing table's team array.
Team
  players : Array
[read-only] Access the array of absolute seating positions of the players on this team.
Team
Protected Properties
 PropertyDefined by
  _index : int
Team
  _players : Array
Team
Public Methods
 MethodDefined by
  
Team(index:int, players:Array)
Create a new team.
Team
  
hasSeat(seat:int):Boolean
Test if the given absolute seating position is on this team
Team
  
toString():String
Team
Property detail
_indexproperty
protected var _index:int
indexproperty 
index:int  [read-only]

Access the index of this team in the containing table's team array.

Implementation
    public function get index():int
_playersproperty 
protected var _players:Array
playersproperty 
players:Array  [read-only]

Access the array of absolute seating positions of the players on this team.

Implementation
    public function get players():Array
Constructor detail
Team()constructor
public function Team(index:int, players:Array)

Create a new team.

Parameters
index:int — the position of this team in the Table's team array
 
players:Array — the absolute seating positions of the players on this team.
Method detail
hasSeat()method
public function hasSeat(seat:int):Boolean

Test if the given absolute seating position is on this team

Parameters
seat:int

Returns
Boolean
toString()method 
public function toString():String

Returns
String