Games\GamesByEmail.js
GamesByEmail
Array
All Implemented Interfaces:
GamesByEmail.Teams
extendsArray
implementsFoundation.Class
A collection of GamesByEmail.Team
objects. Implemented as an Array
.
Constructor Summary |
|
Field Summary | |
| game
The game object this collection belongs to.
|
| team
The parent team object this collection belongs to, or
null . |
Fields inherited from Array |
length |
Method Summary | |
|
Adds a new team to the collection.
|
|
|
|
Finds the team in this collection with the color.
|
|
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 |
GamesByEmail.Teams()
Field Detail |
Game
game
The game object this collection belongs to.
Team
team
The parent team object this collection belongs to, or null
.
Method Detail |
Team
add()
Adds a new team to the collection.
Returns:
dispose()
dispose
in class Class
Team}
findTeamByColor(/*Number
*/ color)
Finds the team in this collection with the color.
Parameters:color -The color to look for.
Team}
findWinningTeam()
Finds the team in this collection and or child collection that won.
Returns: