Inherits from NSObject
Declared in CLScoreServerPost.h

Overview

Handles the Score Post to the cocos live server

Tasks

Properties

connection

connection to the server

@property (nonatomic, retain) NSURLConnection *connection

Declared In

CLScoreServerPost.h

postStatus

status from the score post

@property (nonatomic, readonly) tPostStatus postStatus

Declared In

CLScoreServerPost.h

ranking

ranking of your score

@property (nonatomic, readonly) NSUInteger ranking

Availability

Declared In

CLScoreServerPost.h

scoreDidUpdate

whether or not the score was updated

@property (nonatomic, readonly) BOOL scoreDidUpdate

Availability

Declared In

CLScoreServerPost.h

Class Methods

serverWithGameName:gameKey:delegate:

creates a cocos server with a game name and a game key

+ (id)serverWithGameName:(NSString *)name gameKey:(NSString *)key delegate:(id)delegate

Declared In

CLScoreServerPost.h

Instance Methods

initWithGameName:gameKey:delegate:

initializes a cocos server with a game name and a game key

- (id)initWithGameName:(NSString *)name gameKey:(NSString *)key delegate:(id)delegate

Declared In

CLScoreServerPost.h

sendScore:

send the scores to the server. A new entre will be created on the server

- (BOOL)sendScore:(NSDictionary *)dict

Declared In

CLScoreServerPost.h

updateScore:

Sends a score dictionary to the server for updating an existing entry by playername and device id, or creating a new one. The passed dictionary must contain a cc_playername key, otherwise it will raise and exception.

- (BOOL)updateScore:(NSDictionary *)dict

Availability

Declared In

CLScoreServerPost.h