Platforms to show: All Mac Windows Linux Cross-Platform
GKTurnBasedParticipantMBS class
class, GameKit,
MBS Real Studio MountainLion Plugin
(GameKit),
class GKTurnBasedParticipantMBS,
Plugin version: 12.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A GKTurnBasedParticipant object stores information for a participant in a turn-based match.
Notes:
Your game never creates objects of this class directly; instead it retrieves an array of GKTurnBasedParticipant objects from an GKTurnBasedMatch object.
Most information stored by a GKTurnBasedParticipant object is read-only, and is provided by Game Kit to assist you in implementing your game logic. However, the matchOutcome property is quite important; before your game may end a match, it must set the matchOutcome property in every GKTurnBasedParticipant object associated with the match.
Plugin version: 12.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A GKTurnBasedParticipant object stores information for a participant in a turn-based match.
Notes:
Your game never creates objects of this class directly; instead it retrieves an array of GKTurnBasedParticipant objects from an GKTurnBasedMatch object.
Most information stored by a GKTurnBasedParticipant object is read-only, and is provided by Game Kit to assist you in implementing your game logic. However, the matchOutcome property is quite important; before your game may end a match, it must set the matchOutcome property in every GKTurnBasedParticipant object associated with the match.
- property Handle as Integer
- method Constructor
- method lastTurnDate as date
- method matchOutcome as integer
- method playerID as string
- method status as integer
- method timeoutDate as date
- const GKTurnBasedMatchOutcomeCustomRange = &h00FF0000
- const GKTurnBasedMatchOutcomeFirst = 6
- const GKTurnBasedMatchOutcomeFourth = 9
- const GKTurnBasedMatchOutcomeLost = 3
- const GKTurnBasedMatchOutcomeNone = 0
- const GKTurnBasedMatchOutcomeQuit = 1
- const GKTurnBasedMatchOutcomeSecond = 7
- const GKTurnBasedMatchOutcomeThird = 8
- const GKTurnBasedMatchOutcomeTied = 4
- const GKTurnBasedMatchOutcomeTimeExpired = 5
- const GKTurnBasedMatchOutcomeWon = 2
- const GKTurnBasedParticipantStatusActive = 4
- const GKTurnBasedParticipantStatusDeclined = 2
- const GKTurnBasedParticipantStatusDone = 5
- const GKTurnBasedParticipantStatusInvited = 1
- const GKTurnBasedParticipantStatusMatching = 3
- const GKTurnBasedParticipantStatusUnknown = 0
This class has no sub classes.
Some methods using this class:
- GKTurnBasedMatchMBS.currentParticipant as GKTurnBasedParticipantMBS
- GKTurnBasedMatchMBS.endTurnWithNextParticipant(nextParticipant as GKTurnBasedParticipantMBS, matchData as Dictionary, tag as variant = nil)
- GKTurnBasedMatchMBS.endTurnWithNextParticipants(nextParticipants() as GKTurnBasedParticipantMBS, timeout as double, matchData as Dictionary, tag as variant = nil)
- GKTurnBasedMatchMBS.participantQuitInTurnWithOutcome(matchOutcome as integer, nextParticipant as GKTurnBasedParticipantMBS, matchData as Dictionary, tag as variant = nil)
- GKTurnBasedMatchMBS.participantQuitInTurnWithOutcome(matchOutcome as integer, nextParticipants() as GKTurnBasedParticipantMBS, timeout as double, matchData as Dictionary, tag as variant = nil)
- GKTurnBasedMatchMBS.participants as GKTurnBasedParticipantMBS()
Some events for this class:
- GameKitMBS.endTurnWithNextParticipant(match as GKTurnBasedMatchMBS, nextParticipant as GKTurnBasedParticipantMBS, matchData as Dictionary, error as NSErrorMBS, tag as variant)
- GameKitMBS.endTurnWithNextParticipantsCompleted(match as GKTurnBasedMatchMBS, nextParticipants() as GKTurnBasedParticipantMBS, timeout as double, matchData as Dictionary, error as NSErrorMBS, tag as variant)
- GameKitMBS.participantQuitInTurnWithOutcomeCompleted(match as GKTurnBasedMatchMBS, matchOutcome as Integer, nextParticipant as GKTurnBasedParticipantMBS, nextParticipants() as GKTurnBasedParticipantMBS, timeout as double, matchData as Dictionary, error as NSErrorMBS, tag as variant)
The items on this page are in the following plugins: MBS Real Studio MountainLion Plugin.
Links
MBS Real Studio Plugins