Members
activeScreen
app :App
the app of this stage.
Type:
clientDuration :number
How long clients have before stage is auto-submitted (from client, not from server).
if <= 0, then no client timeout for this stage.
Type:
- number
duration :number
timeout duration in seconds
if <= 0, then no timeout for this stage.
Type:
- number
html
htmlFile
id :String
The identifier of this stage.
Type:
- String
name :Name
for display only, should be unique.
Type:
- Name
onPlaySendPlayer :boolean
when starting stage for a player, send 'player' object or not.
fields determined by player.outputFields.
Type:
- boolean
outputHide :Array
'outputHide' fields are not included in output.
Type:
- Array
outputHideAuto :Array.<String>
'outputHideAuto' fields are not included in output.
Type:
- Array.<String>
repetitions :number
The number of times to repeat child stages.
Type:
- number
stages :Array
Child stages. If length > 0, then ...
Type:
- Array
updateObject :string
how far up the tree should be sent on update. More data comes at cost of higher latency.
possible values: 'player', 'group'
Type:
- string
useAppActiveScreen :boolean
Type:
- boolean
useAppWaitingScreen :boolean
Type:
- boolean
useIdAsHTMLFileName :boolean
Type:
- boolean
waitOnTimerEnd :boolean
Wait for all players to finish stage on their own (true), or end anyway (false).
Type:
- boolean
waitToEnd :boolean
Wait for all players in group to be 'finished' or 'done' before calling Stage.groupEnd(group) and Stage.playerStart(player) are called.
Type:
- boolean
waitToStart :boolean
Wait for all players in group to be 'ready' before calling Stage.groupStart(group) and Stage.playerStart(player) are called.
Type:
- boolean
wrapPlayingScreenInFormTag
Wrap stage playing screens in a
Methods
canPlayerParticipate(player) → {type}
Can the given player participate in this stage?
Parameters:
Name | Type | Description |
---|---|---|
player |
type | description |
Returns:
description
- Type
- type
groupEnd(group) → {type}
Overwrite in app.jtt.
Parameters:
Name | Type | Description |
---|---|---|
group |
type | description |
Returns:
description
- Type
- type
groupStart()
Called before the first player plays this stage.
Overwrite in app.jtt
indexInApp() → {type}
indexInApp - description
Returns:
description
- Type
- type
playerEnd(player)
End this stage for the given player.
Overwrite in app.jtt.
Parameters:
Name | Type | Description |
---|---|---|
player |
type | description |
playerStart()
Called when this player plays this stage.
Overwrite in app.jtt.
save() → {type}
CALLED FROM:
Returns:
description
- Type
- type
session() → {type}
session - description
Returns:
description
- Type
- type
shell() → {type}
CALLED FROM:
Returns:
description
- Type
- type
shellWithParent() → {type}
shellWithParent - description
Returns:
description
- Type
- type