CLScoreServerPost Class Reference
Inherits from | NSObject |
Declared in | CLScoreServerPost.h |
Tasks
-
postStatus
status from the score post
property -
connection
connection to the server
property -
ranking
ranking of your score
property -
scoreDidUpdate
whether or not the score was updated
property -
+ serverWithGameName:gameKey:delegate:
creates a cocos server with a game name and a game key
-
– initWithGameName:gameKey:delegate:
initializes a cocos server with a game name and a game key
-
– sendScore:
send the scores to the server. A new entre will be created on the server
-
– 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.
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
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