SkillzTurnBasedDelegate Protocol Reference

Conforms to SkillzBaseDelegate
Declared in SkillzInstance.h

Overview

If you plan to support Turn Based Gameplay, your Skillz delegate should conform to this protocol.

NOTE: Your Skillz Delegate may also conform to SkillzDelegate if you plan to support both play types.

– turnBasedTournamentWillBegin:withTurnInformation: required method

This method will be called when a turn based tournament type will launch. You should use this method to either construct a new game, or continue an ongoing tournament.

- (void)turnBasedTournamentWillBegin:(NSDictionary *)gameParameters withTurnInformation:(SKZTurnBasedMatchInfo *)currentGameStateInfo

Parameters

gameParameters

This dictionary contains Game Parameters that were configured in the Skillz Developer Portal

currentGameStateInfo

The SKZTurnBasedMatchInfo object will give you all current information about an ongoing turn based game, please refer to the Skillz documentation for more info.

Declared In

SkillzInstance.h

– turnBasedGameReviewWillBegin:withGameStateInformation:

This method is optional, even for Turn Based Gameplay. By implementing this method, you allow the user to review ongoing turn based tournaments from the Skillz UI. When this method is called, construct your game as you would for turnBasedTournamentWillBegin:withTurnInformation:, but do not allow the player to make a move.

- (void)turnBasedGameReviewWillBegin:(NSDictionary *)gameParameters withGameStateInformation:(SKZTurnBasedMatchInfo *)currentGameStateInfo

Parameters

gameParameters

This dictionary contains the Game Parameters for the tournament that is about to be reviewed.

currentGameStateInfo

The SKZTurnBasedMatchInfo object will give you all current information about an ongoing turn based game, please refer to the Skillz documentation for more info.

Declared In

SkillzInstance.h