Class

GKTurnBasedParticipant

The information that describes a participant in a turn-based match.

Declaration

@interface GKTurnBasedParticipant : NSObject

Overview

Your game never creates objects of this class directly; instead it retrieves an array of GKTurnBasedParticipant objects from a GKTurnBasedMatch object.

Most information stored in a GKTurnBasedParticipant object is read-only, and is provided by GameKit to assist you in implementing your game logic. However, the matchOutcome property is quite important; before your game ends a match, it must set the matchOutcome property for every participant in the match.

Subclassing

This class may not be subclassed.

Topics

Participant Information

lastTurnDate

The date and time that this participant last took a turn in the game.

player

The GKPlayer object that identifies this participant.

status

The current status of the participant.

timeoutDate

The date and time that the participant’s turn timed out.

GKTurnBasedParticipantStatus

The state the participant is in during the match.

playerID

The player identifier for this participant.

Deprecated

Setting the Match Outcome

matchOutcome

The end-state of this participant in the match.

GKTurnBasedMatchOutcome

The state the participant was in when they left the match.

Relationships

Inherits From

See Also

Turn-based Games

GKTurnBasedMatch

An object used to implement turn-based matches between sets of players on Game Center.

GKTurnBasedExchange

The exchange information sent between players even when a player is not the current player.

GKTurnBasedExchangeReply

The player’s response to an exchange.

GKTurnBasedEventListener

The protocol you implement to handle exchanges and match-related events for turn-based games.