Example #1
0
 @Override
 public void onOnlineGameClicked(float stageX, float stageY) {
   if (getMultiplayer() == null) return; // desktop mode
   if (!checkForNickName("online")) return;
   if (!multiplayerController.onOnlineGameClicked()) return;
   goTo(MenuScreen.NEW_GAME_VIEW, stageX, stageY);
   screen.chooseMode(false);
 }
Example #2
0
 private void onNewGameClicked(float stageX, float stageY) {
   if (!checkForNickName("local")) return;
   if (getScreenDirector().setLocal().gameExists()) getScreenDirector().goToGame();
   else {
     goTo(MenuScreen.NEW_GAME_VIEW, stageX, stageY);
     screen.chooseMode(true);
   }
 }