CLScoreServerPost Class Reference
| Inherits from | NSObject |
| Declared in | CLScoreServerPost.h |
Tasks
-
postStatusstatus from the score post
property -
connectionconnection to the server
property -
rankingranking of your score
property -
scoreDidUpdatewhether 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 *connectionDeclared In
CLScoreServerPost.hpostStatus
status from the score post
@property (nonatomic, readonly) tPostStatus postStatusDeclared In
CLScoreServerPost.hInstance 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)delegateDeclared In
CLScoreServerPost.hsendScore:
send the scores to the server. A new entre will be created on the server
- (BOOL)sendScore:(NSDictionary *)dictDeclared In
CLScoreServerPost.hupdateScore:
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 *)dictAvailability
Declared In
CLScoreServerPost.h