So basically I have a protocol inside my interface that I need to include in my implementation because I am getting an incomplete error and therefore can’t continue.
. h file
@interface waveLayer1 : CCLayer <GameKitHelperProtocol>
{
...
}
.m file
@implementation waveLayer1
GameKitHelper.h file
#import "cocos2d.h"
#import <GameKit/GameKit.h>
@protocol GameKitHelperProtocol
-(void) onLocalPlayerAuthenticationChanged;
-(void) onFriendListReceived: (NSArray*)friends;
-(void) onPlayerInfoReceived:(NSArray*)players;
@end
@interface GameKitHelper : NSObject {
id<GameKitHelperProtocol> delegate; bool isGameCenterAvailable; NSError* lastError;
}
@property (nonatomic, retain) id<GameKitHelperProtocol> delegate;
@property (nonatomic, readonly) bool isGameCenterAvailable; @property (nonatomic, readonly) NSError* lastError;
+(GameKitHelper*) sharedGameKitHelper;
// Player authentication, info
-(void) authenticateLocalPlayer;
-(void) getLocalPlayerFriends;
-(void) getPlayerInfo:(NSArray*)players;
@end
The error is “Method in protocol not implemented” I have more files I can show ,but to save room I decided to see if you can help me fix this with just these codes
Implement these 3 methods in your waveLayer1 class..