Package flyingdiamond.model

Examples of flyingdiamond.model.GameRunningManager


        //Ours UI update are ordered!For example:When matrix loading,we have to
        //waiting for one grew and the up updated,then grow a new line and update
        //again.
        SwingUtilities.invokeAndWait(new Runnable() {
          public void run() {
            GameRunningManager controller = (GameRunningManager) o;
            scorePanel.showScore(controller.getTotalScore());
            lifePanel.showLife(controller.getLife());
            logger.info("The game state view updated by game runing manager's new status");
          }
        });
      }
    } catch (InterruptedException e) {
View Full Code Here


    // Ours UI update are ordered!For example:When matrix loading,we have to
    // waiting for one grew and the up updated,then grow a new line and
    // update again.
    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        GameRunningManager manager = (GameRunningManager) o;
        ModelUpdateCaseEnum updateCase = (ModelUpdateCaseEnum) arg;
        if (updateCase == ModelUpdateCaseEnum.LEVEL_PASSED) {
          JOptionPane.showMessageDialog(mainFrame,
              "You passed this level! Now level "
                  + manager.getLevel() + "starts...");
        }
        logger
            .info("The main view updated by game runing manager's new status");
      }
    });
View Full Code Here

TOP

Related Classes of flyingdiamond.model.GameRunningManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.