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
GKMatchmakerMBS class
class, GameKit,
MBS Real Studio MountainLion Plugin
(GameKit),
class GKMatchmakerMBS,
Plugin version: 12.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The GKMatchmaker class is used to programmatically create matches to other players and to receive match invitations sent by other players.
Notes:
see also
https://developer.apple.com/library/mac/#documentation/GameKit/Reference/GKMatchmaker_Ref/Reference/Reference.html
Plugin version: 12.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The GKMatchmaker class is used to programmatically create matches to other players and to receive match invitations sent by other players.
Notes:
see also
https://developer.apple.com/library/mac/#documentation/GameKit/Reference/GKMatchmaker_Ref/Reference/Reference.html
- property Handle as Integer
- method addPlayersToMatch(match as GKMatchMBS, matchRequest as GKMatchRequestMBS, tag as variant = nil)
- shared method Available as boolean
- method cancel
- method cancelInviteToPlayer(playerID as string)
- method Constructor
- method Destructor
- method findMatchForRequest(request as GKMatchRequestMBS, tag as variant = nil)
- method findPlayersForHostedMatchRequest(request as GKMatchRequestMBS, tag as variant = nil)
- method finishMatchmakingForMatch(match as GKMatchMBS)
- method matchForInvite(invite as GKInviteMBS, tag as variant = nil)
- shared method maxPlayersAllowedForMatchOfType(type as integer) as integer
- method queryActivity(tag as variant = nil)
- method queryPlayerGroupActivity(playerGroup as integer, tag as variant = nil)
- shared method sharedMatchmaker as GKMatchmakerMBS
- method startBrowsingForNearbyPlayers(tag as integer)
- method stopBrowsingForNearbyPlayers
Match Types
| Constant | Value | Description |
|---|---|---|
| GKMatchTypeHosted | 1 |
Hosted Match Available on Mac OS X 10.8.2 and newer. |
| GKMatchTypePeerToPeer | 0 |
Peer to Peer Match. Available on Mac OS X 10.8.2 and newer. |
| GKMatchTypeTurnBased | 2 |
Turn based match. Available on Mac OS X 10.8.2 and newer. |
This class has no sub classes.
Some events for this class:
- GameKitMBS.addPlayersToMatchCompleted(MatchMaker as GKMatchmakerMBS, match as GKMatchMBS, matchRequest as GKMatchRequestMBS, 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.findPlayersForHostedMatchRequestCompleted(MatchMaker as GKMatchmakerMBS, request as GKMatchRequestMBS, playerIDs() as string, error as NSErrorMBS, tag as variant)
- GameKitMBS.Invited(MatchMaker as GKMatchmakerMBS, acceptedInvite as GKInviteMBS, playersToInvite() as string)
- GameKitMBS.matchForInviteCompleted(Matchmaker as GKMatchmakerMBS, invite as GKInviteMBS, match as GKMatchMBS, error as NSErrorMBS, tag as variant)
- GameKitMBS.queryActivityCompleted(MatchMaker as GKMatchmakerMBS, activity as integer, error as NSErrorMBS, tag as variant)
- GameKitMBS.queryPlayerGroupActivityCompleted(MatchMaker as GKMatchmakerMBS, playerGroup as integer, activity as integer, error as NSErrorMBS, tag as variant)
- GameKitMBS.startBrowsingForNearbyPlayersCompleted(Matchmaker as GKMatchmakerMBS, playerID as string, reachable as boolean, tag as integer)
The items on this page are in the following plugins: MBS Real Studio MountainLion Plugin.
Links
MBS Realbasic PDF Plugins