Flash Challenge.updateGamePlay()
From J2Play
Contents |
Description
Update player status in challenge at game start. You should make this call at player's turn starting, it changes the player status to 'playing'. And you can get the player status through Challenge.getPlayerStatus() , if it is already 'playing' before this call, then player left the challenge part way through
Syntax
public function updateGamePlay();
Parameters
N/A
Return Value
N/A
Examples
Do challenge update at game start function
if(_global.controller.isChallenge()) {
_global.controller.getChallenge().updateGamePlay();
// do other challenge related initialization
}
