File: Games\GamesByEmail.js

GamesByEmail
Class Teams

Array
  
 
 
GamesByEmail.Teams

All Implemented Interfaces:

Class


GamesByEmail.Teams

extends Array
implements Foundation.Class

A collection of GamesByEmail.Team objects. Implemented as an Array.


Constructor Summary
GamesByEmail.Teams()

Field Summary
Gamegame
The game object this collection belongs to.
Teamteam
The parent team object this collection belongs to, or null.

Fields inherited from Array
length

Method Summary
Teamadd()
Adds a new team to the collection.
 dispose()
Team}findTeamByColor(/*Number*/ color)
Finds the team in this collection with the color.
Team}findWinningTeam()
Finds the team in this collection and or child collection that won.

Methods inherited from Array
indexOf

Methods inherited from Foundation.Class
getTypePath, isInstanceOf

Constructor Detail

Teams

GamesByEmail.Teams()

Field Detail

game

Game game

The game object this collection belongs to.


team

Team team

The parent team object this collection belongs to, or null.

Method Detail

add

Team add()

Adds a new team to the collection.

Returns:
The new team.

dispose

dispose()
Overrides:
dispose in class Class

findTeamByColor

Team} findTeamByColor(/*Number*/ color)

Finds the team in this collection with the color.

Parameters:
color - 
The color to look for.
Returns:
The first team with the color.

findWinningTeam

Team} findWinningTeam()

Finds the team in this collection and or child collection that won.

Returns:
The first team marked as a winner.