|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.shephertz.app42.paas.sdk.jme.game.GameService
public class GameService
The Game service allows Game, User, Score and ScoreBoard Management on the Cloud. The service allows Game Developer to create a Game and then do in Game Scoring using the Score service. It also allows to maintain a Score board across game sessions using the ScoreBoard service. One can query for average or highest score for user for a Game and highest and average score across users for a Game. It also gives ranking of the user against other users for a particular game. The Reward and RewardPoints allows the Game Developer to assign rewards to a user and redeem the rewards. E.g. One can give Swords or Energy etc. The services Game, Score, ScoreBoard, Reward, RewardPoints can be used in Conjunction for complete Game Scoring and Reward Management.
Reward, RewardPoint, Score, ScoreBoard
Constructor Summary | |
---|---|
GameService(java.lang.String apiKey,
java.lang.String secretKey,
java.lang.String baseURL)
this is a constructor that takes |
Method Summary | |
---|---|
Game |
createGame(java.lang.String gameName,
java.lang.String gameDescription)
Creates a game on the cloud |
java.util.Vector |
getAllGames()
Fetches all games for the App |
java.util.Vector |
getAllGames(java.lang.Integer max,
java.lang.Integer offset)
Fetches all games for the App by paging. |
App42Response |
getAllGamesCount()
Fetches the count of all games for the App |
Game |
getGameByName(java.lang.String gameName)
Retrieves the game by the specified name |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GameService(java.lang.String apiKey, java.lang.String secretKey, java.lang.String baseURL)
apiKey
- secretKey
- baseURL
- Method Detail |
---|
public Game createGame(java.lang.String gameName, java.lang.String gameDescription) throws App42Exception
gameName
- - Name of the game that has to be createdgameDescription
- - Description of the game to be created
App42Exception
public java.util.Vector getAllGames() throws App42Exception
App42Exception
public java.util.Vector getAllGames(java.lang.Integer max, java.lang.Integer offset) throws App42Exception
max
- - Maximum number of records to be fetchedoffset
- - From where the records are to be fetched
App42Exception
public App42Response getAllGamesCount() throws App42Exception
App42Exception
public Game getGameByName(java.lang.String gameName) throws App42Exception
gameName
- - Name of the game that has to be fetched
App42Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |