Class CreateSFSGameRequest

java.lang.Object
sfs3.client.requests.BaseRequest
sfs3.client.requests.game.CreateSFSGameRequest
All Implemented Interfaces:
sfs3.client.requests.IClientRequest

public class CreateSFSGameRequest extends BaseRequest
Creates a new public or private game, including player matching criteria, invitations settings and more.

A game is created through the instantiation of a SFSGame on the server-side, a specialized Room type that provides advanced features during the creation phase of a game. Specific game-configuration settings are passed by means of the SFSGameSettings class.

If the creation is successful, a roomAdd event is dispatched to all the users who subscribed the Group to which the Room is associated, including the game creator. Otherwise, a roomCreationError event is returned to the creator's client.

Also, if the settings passed in the SFSGameSettings object cause invitations to join the game to be sent, an invitation event is dispatched to all the recipient clients.

Check the SmartFoxServer 3 documentation for a more in-depth overview of the GAME API.

See Also: