Contents

GKTurnBasedParticipant

A participant in a turn-based match.

Declaration

class GKTurnBasedParticipant

Overview

A GKTurnBasedParticipant represents a player in a turn-based match that Game Center uses to store and forward match data. In your game, use participant objects to show information about opponents during gameplay.

You get GKTurnBasedParticipant objects from the participants property of a GKTurnBasedMatch object that GameKit passes to GKTurnBasedEventListener protocol methods. If a participant represents a filled slot in the match, GameKit sets the player property and the status accordingly. Get more information about a participant, such as the participant’s name and avatar, through the player property.

Before you end a match, you must set the matchOutcome property for every participant in the match.

Subclassing

You may not subclass this class.

Topics

Retrieving Participant Details

Setting Participant Outcomes

See Also

Turn-based games