Represents the winning and losing teams of a game and provides conversion to players.
highestLosingScore:int [read-only]
Access the highest losing score. Evalulates to int.MINVALUE if there are no losers.
Implementation
public function get highestLosingScore():int
highestScore:int [read-only]
Access the highest score of all teams.
Implementation
public function get highestScore():int
protected var _losers:Array
losingPlayers:Array [read-only]
Access the array of players ids that are on a losing team.
Implementation
public function get losingPlayers():Array
losingTeams:Array [read-only]
Access the array of losing Team objects.
Implementation
public function get losingTeams():Array
scoreDifferential:int [read-only]
Access the amount that the winners lead by (ahead of the highest scoring losers).
Returns 0 in the case of an all-way tie.
Implementation
public function get scoreDifferential():int
protected var _scores:Scores
protected var _winners:Array
winningPlayers:Array [read-only]
Access the array of players ids that are on a winning team.
Implementation
public function get winningPlayers():Array
winningTeams:Array [read-only]
Access the array of winning Team objects.
Implementation
public function get winningTeams():Array
public function WinnersAndLosers(scores:Scores, winners:Array) Create based on a precalculated array of winning Team objects. All remaining teams are
the losers.
Parameters
| scores:Scores — containing all teams
|
| |
| winners:Array — array of Team objects that share the highest score |
protected function playersOn(teams:Array):ArrayParameters
Returns