|
Kobold2D
1.0
Kobold2D API Reference (iOS version) for Kobold2D developers
|
#include <KKGameKitHelper.h>
Public Member Functions | |
| void | onLocalPlayerAuthenticationChanged () |
| void | onFriendListReceived: (NSArray *friends) |
| void | onPlayerInfoReceived: (NSArray *players) |
| void | onScoresSubmitted: (BOOL success) |
| void | onScoresReceived: (NSArray *scores) |
| void | onAchievementReported: (GKAchievement *achievement) |
| void | onAchievementsLoaded: (NSDictionary *achievements) |
| void | onResetAchievements: (BOOL success) |
| void | onMatchFound: (GKMatch *match) |
| void | onPlayersAddedToMatch: (BOOL success) |
| void | onReceivedMatchmakingActivity: (NSInteger activity) |
| void | onPlayerConnected: (NSString *playerID) |
| void | onPlayerDisconnected: (NSString *playerID) |
| void | onStartMatch () |
| void | onReceivedData:fromPlayer: (NSData *data,[fromPlayer] NSString *playerID) |
| void | onMatchmakingViewDismissed () |
| void | onMatchmakingViewError () |
| void | onLeaderboardViewDismissed () |
| void | onAchievementsViewDismissed () |
Defines the delegate methods that are forwarded from GameKitHelper.
| void KKGameKitHelperProtocol-p::onAchievementReported: | ( | GKAchievement * | achievement | ) | [optional, virtual] |
Called when achievement was reported to Game Center.
| void KKGameKitHelperProtocol-p::onAchievementsLoaded: | ( | NSDictionary * | achievements | ) | [optional, virtual] |
Called when achievement list was received from Game Center.
| void KKGameKitHelperProtocol-p::onAchievementsViewDismissed | ( | ) | [optional, virtual] |
Called when the achievements view was closed.
| void KKGameKitHelperProtocol-p::onFriendListReceived: | ( | NSArray * | friends | ) | [optional, virtual] |
Called when friend list was received from Game Center.
| void KKGameKitHelperProtocol-p::onLeaderboardViewDismissed | ( | ) | [optional, virtual] |
Called when the leaderboard view was closed.
| void KKGameKitHelperProtocol-p::onLocalPlayerAuthenticationChanged | ( | ) | [virtual] |
Called when local player was authenticated or logged off.
| void KKGameKitHelperProtocol-p::onMatchFound: | ( | GKMatch * | match | ) | [optional, virtual] |
Called when a match was found.
| void KKGameKitHelperProtocol-p::onMatchmakingViewDismissed | ( | ) | [optional, virtual] |
Called when the matchmaking view was closed.
| void KKGameKitHelperProtocol-p::onMatchmakingViewError | ( | ) | [optional, virtual] |
Called for any generic error in the matchmaking view.
| void KKGameKitHelperProtocol-p::onPlayerConnected: | ( | NSString * | playerID | ) | [optional, virtual] |
Called when a player connected to the match.
| void KKGameKitHelperProtocol-p::onPlayerDisconnected: | ( | NSString * | playerID | ) | [optional, virtual] |
Called when a player disconnected from a match.
| void KKGameKitHelperProtocol-p::onPlayerInfoReceived: | ( | NSArray * | players | ) | [optional, virtual] |
Called when player info was received from Game Center.
| void KKGameKitHelperProtocol-p::onPlayersAddedToMatch: | ( | BOOL | success | ) | [optional, virtual] |
Called to indicate whether adding players to a match was successful.
| void KKGameKitHelperProtocol-p::onReceivedData:fromPlayer: | ( | NSData * | data, |
| [fromPlayer] NSString * | playerID | ||
| ) | [optional, virtual] |
Called whenever data from another player was received.
| void KKGameKitHelperProtocol-p::onReceivedMatchmakingActivity: | ( | NSInteger | activity | ) | [optional, virtual] |
Called when matchmaking activity was received from Game Center.
| void KKGameKitHelperProtocol-p::onResetAchievements: | ( | BOOL | success | ) | [optional, virtual] |
Called to indicate whether the reset achievements command was successful.
| void KKGameKitHelperProtocol-p::onScoresReceived: | ( | NSArray * | scores | ) | [optional, virtual] |
Called when scores were received from Game Center.
| void KKGameKitHelperProtocol-p::onScoresSubmitted: | ( | BOOL | success | ) | [optional, virtual] |
Called when scores where submitted. This can fail, so check for success.
| void KKGameKitHelperProtocol-p::onStartMatch | ( | ) | [optional, virtual] |
Called when the match begins.