Esempio n. 1
0
 /**
  * active lb 設定
  *
  * @param ids
  */
 public static void setActiveLeaderBoards(String[] ids) {
   // int
   int count = ids.length;
   Integer[] lbIds = new Integer[count];
   for (int i = 0; i < count; i++) {
     lbIds[i] = Integer.valueOf(ids[i]);
   }
   appCCloud.Gamers.setActiveLeaderBoards(lbIds);
 }
Esempio n. 2
0
 /**
  * leader board取得.
  *
  * @param id
  * @return leaderBoard json
  */
 public static String getLeaderBoard(final int id) {
   LeaderBoard leaderBoard = appCCloud.Gamers.getLeaderBoard(id);
   JSONObject json = new JSONObject();
   try {
     Integer idVal = leaderBoard.getId();
     json.put("id", idVal.toString());
     json.put("name", leaderBoard.getName());
     json.put("score", leaderBoard.getScore());
     json.put("time", leaderBoard.getTime());
   } catch (Exception e) {
   }
   return json.toString();
 }
Esempio n. 3
0
 /**
  * play count 取得.
  *
  * @return play count
  */
 public static int getPlayCount() {
   return appCCloud.Gamers.getPlayCount();
 }