File: Games\GamesByEmail.js

GamesByEmail
Class Player

Object
  
 
 
GamesByEmail.Player

All Implemented Interfaces:

Class


GamesByEmail.Player

implements Foundation.Class

Information about a player.


Constructor Summary
GamesByEmail.Player()

Field Summary
Gamegame
The game object this player belongs to.
Numberid
The unique ID for this player, or 0 if the current user is not this player.
Numberindex
The index of this player in the parent collection.
Infoinfo
Game specific player preferences.
BooleanisUs
If the current user is a direct player on this team.
Stringmessage
Private notes for this player.
Teamteam
The parent team object this player belongs to.
Stringtitle
The title of this player.

Method Summary
 dispose()
BooleanisMyTurn()
Determines if it is this player's team's turn.
PlayernextOpponent()
Finds the player on the next team.

Methods inherited from Foundation.Class
getTypePath, isInstanceOf

Constructor Detail

Player

GamesByEmail.Player()

Field Detail

game

Game game

The game object this player belongs to.


id

Number id

The unique ID for this player, or 0 if the current user is not this player.


index

Number index

The index of this player in the parent collection.


info

Info info

Game specific player preferences.


isUs

Boolean isUs

If the current user is a direct player on this team.


message

String message

Private notes for this player.


team

Team team

The parent team object this player belongs to.


title

String title

The title of this player.

Method Detail

dispose

dispose()
Overrides:
dispose in class Class

isMyTurn

Boolean isMyTurn()

Determines if it is this player's team's turn.

Returns:
The player's team's turn status.

nextOpponent

Player nextOpponent()

Finds the player on the next team.

Returns:
The player on the next team.