コード例 #1
0
 /**
  * Create a new session for game gid.
  *
  * @param gamePersistenceManagerServer the persistent manager currently valid
  * @param creator the account that creates the session and is the owner of the session
  * @param gid the game to play
  * @throws JDOObjectNotFoundException
  */
 public SessionServer(
     GamePersistenceManagerServer gamePersistenceManagerServer, String creator, Gid gid)
     throws JDOObjectNotFoundException {
   super(gamePersistenceManagerServer, SessionId.getNext(gamePersistenceManagerServer));
   this.gid = gid.getGid();
 }
コード例 #2
0
ファイル: Giid.java プロジェクト: SvenAke/AboveGameServer
 public Giid(Sid sid, Gid gid) {
   this.giid = sid.getSid() + DELIMITER + gid.getGid();
 }