Flash Challenge.updateGameEnd()

From J2Play

Jump to: navigation, search

Contents

Description

At the end of game, update players' status and game status to the challenge system. You don't need to call this function if you pass true into Challenge.updateNextTurn()

Syntax

public function updateGameEnd() : Void;

Parameters

N/A

Return Value

N/A

Examples

When a chess game finish, you notify the challenge system the game is complete

  challenge.setResult(Array(Object(0)),Array(Object(1)),Array());
  challenge.setDisplayMessages("You win the challenge","You lose the challenge");
  challenge.updateGameEnd();
Personal tools