コード例 #1
0
ファイル: GameManager.java プロジェクト: ricki/iso2010-11
 public void connectToGame(int gameIndex, GameEventListener gameListener)
     throws RemoteException, GameNotFoundException, InvalidSessionException, InvalidTimeException,
         NotCurrentPlayerGameException, AlreadyInGameException {
   final GameInfo info = mCurrentGameListModel.getGameAt(gameIndex);
   final Session session = usrMgr.getSession();
   final Game game = srvAdapter.playGame(session, info);
   mGameEngine = new GameEngine(game, session, srvAdapter, gameListener);
   cltAdapter.setCallback(mGameEngine);
 }