MBS Xojo Developer Conference and Training
Join us from 11th to 14th September 2013 in Koblenz.
Join us from 11th to 14th September 2013 in Koblenz.
Platforms to show: All Mac Windows Linux Cross-Platform
GKTurnBasedMatchMBS class
class, GameKit,
MBS Real Studio MountainLion Plugin
(GameKit),
class GKTurnBasedMatchMBS,
Plugin version: 12.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The GKTurnBasedMatch class allows your game to implement turn-based matches between sets of players on Game Center.
Notes:
A turn-based match uses a store-and-forward approach to share data between the participants. When a player participating in the match performs actions to advance the state of the match, your game uploads data to Game Center that defines the new state of the match and tells Game Center which player act next in the match. Later, when the next player launches your game, it downloads the match data from Game Center and continues the match. Players continue to take turns acting (based on whatever internal logic your game implements) until the match ends. A key advantage of turn-based matches is that a player may participate in multiple matches simultaneously.
see also
https://developer.apple.com/library/mac/#documentation/GameKit/Reference/GKTurnBasedMatch_Ref/Reference/Reference.html
Plugin version: 12.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The GKTurnBasedMatch class allows your game to implement turn-based matches between sets of players on Game Center.
Notes:
A turn-based match uses a store-and-forward approach to share data between the participants. When a player participating in the match performs actions to advance the state of the match, your game uploads data to Game Center that defines the new state of the match and tells Game Center which player act next in the match. Later, when the next player launches your game, it downloads the match data from Game Center and continues the match. Players continue to take turns acting (based on whatever internal logic your game implements) until the match ends. A key advantage of turn-based matches is that a player may participate in multiple matches simultaneously.
see also
https://developer.apple.com/library/mac/#documentation/GameKit/Reference/GKTurnBasedMatch_Ref/Reference/Reference.html
- property Handle as Integer
- method acceptInvite(tag as variant = nil)
- shared method Available as boolean
- method Constructor
- method creationDate as date
- method currentParticipant as GKTurnBasedParticipantMBS
- method declineInvite(tag as variant = nil)
- method endMatchInTurnWithMatchData(matchData as Dictionary, tag as variant = nil)
- method endTurnWithNextParticipant(nextParticipant as GKTurnBasedParticipantMBS, matchData as Dictionary, tag as variant = nil)
- method endTurnWithNextParticipants(nextParticipants() as GKTurnBasedParticipantMBS, timeout as double, matchData as Dictionary, tag as variant = nil)
- shared method findMatchForRequest(request as GKMatchRequestMBS, tag as variant = nil)
- method loadMatchData(tag as variant = nil)
- shared method loadMatches(tag as variant = nil)
- shared method loadMatchWithID(matchID as string, tag as variant = nil)
- method matchData as Dictionary
- method matchDataMaximumSize as Integer
- method matchID as string
- method message as string
- method participantQuitInTurnWithOutcome(matchOutcome as integer, nextParticipant as GKTurnBasedParticipantMBS, matchData as Dictionary, tag as variant = nil)
- method participantQuitInTurnWithOutcome(matchOutcome as integer, nextParticipants() as GKTurnBasedParticipantMBS, timeout as double, matchData as Dictionary, tag as variant = nil)
- method participantQuitOutOfTurnWithOutcome(matchOutcome as integer, tag as variant = nil)
- method participants as GKTurnBasedParticipantMBS()
- method rematch(tag as variant = nil)
- method remove(tag as variant = nil)
- method saveCurrentTurnWithMatchData(matchData as Dictionary, tag as variant = nil)
- method status as integer
- shared method TimeoutDefault as double
- shared method TimeoutNone as double
- const GKTurnBasedMatchStatusEnded = 2
- const GKTurnBasedMatchStatusMatching = 3
- const GKTurnBasedMatchStatusOpen = 1
- const GKTurnBasedMatchStatusUnknown = 0
- 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 events for this class:
- GameKitMBS.acceptInviteCompleted(match as GKTurnBasedMatchMBS, error as NSErrorMBS, tag as variant)
- GameKitMBS.declineInviteCompleted(match as GKTurnBasedMatchMBS, error as NSErrorMBS, tag as variant)
- GameKitMBS.endMatchInTurnWithMatchDataCompleted(match as GKTurnBasedMatchMBS, matchData as Dictionary, error as NSErrorMBS, tag as variant)
- 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.findMatchForRequestCompleted(MatchMaker as GKMatchmakerMBS, request as GKMatchRequestMBS, match as GKMatchMBS, TurnBasedMatch as GKTurnBasedMatchMBS, error as NSErrorMBS, tag as variant)
- GameKitMBS.handleMatchEnded(match as GKTurnBasedMatchMBS)
- GameKitMBS.handleTurnEventForMatch(match as GKTurnBasedMatchMBS, didBecomeActive as boolean)
- GameKitMBS.loadMatchDataCompleted(match as GKTurnBasedMatchMBS, matchData as Dictionary, error as NSErrorMBS, tag as variant)
- GameKitMBS.loadMatchesCompleted(matches() as GKTurnBasedMatchMBS, error as NSErrorMBS, tag as variant)
- GameKitMBS.loadMatchWithIDCompleted(TurnBasedMatch as GKTurnBasedMatchMBS, matchID as string, 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)
- GameKitMBS.participantQuitOutOfTurnWithOutcomeCompleted(match as GKTurnBasedMatchMBS, matchOutcome as Integer, error as NSErrorMBS, tag as variant)
- GameKitMBS.rematchCompleted(TurnMatch as GKTurnBasedMatchMBS, match as GKMatchMBS, error as NSErrorMBS, tag as variant)
- GameKitMBS.removeCompleted(match as GKTurnBasedMatchMBS, error as NSErrorMBS, tag as variant)
- GameKitMBS.saveCurrentTurnWithMatchDataCompleted(match as GKTurnBasedMatchMBS, matchData as Dictionary, error as NSErrorMBS, tag as variant)
- GameKitMBS.turnBasedMatchmakerViewControllerDidFindMatch(viewController as variant, match as GKTurnBasedMatchMBS)
- GameKitMBS.turnBasedMatchmakerViewControllerPlayerQuitForMatch(viewController as variant, match as GKTurnBasedMatchMBS)
The items on this page are in the following plugins: MBS Real Studio MountainLion Plugin.
Links
MBS Realbasic Chart Plugins