Package oop13.space.model

Examples of oop13.space.model.ShipShot


    this.mainFrame.replacePanel(gamePanel);
  }

  @Override
  public void seeHighScoresCmd() {
    HighScoreGUI highScore = new HighScoreGUI();
    HighScoreController highScoreController = new HighScoreController(this.mainFrame, this.model);
    highScoreController.setView(highScore);
    this.mainFrame.replacePanel(highScore);
  }
View Full Code Here


  }

  @Override
  public void resetCmd() {
    HighScore.getHighScore().resetHighScore();
    HighScoreGUI highScoreGUI = new HighScoreGUI();
    HighScoreController highScoreController = new HighScoreController(this.mainFrame, this.model);
    highScoreController.setView(highScoreGUI);
    this.mainFrame.replacePanel(highScoreGUI);
  }
View Full Code Here

public class Main {
 
  public static void main(String[] args) {
    Model model = new Model();
    MainMenuController c = new MainMenuController(model);
    MainFrame mainFrame = new MainFrame();
    c.setView(mainFrame);
    mainFrame.setVisible(true);
  }
View Full Code Here

      }
    }
  }
 
  public static void main(String[] args) {
    MainFrame mainFrame = new MainFrame();
    TestCollisionsToShip test = new TestCollisionsToShip();
    mainFrame.replacePanel(test.getTestPanel());
    test.start();
    mainFrame.setVisible(true);
  }
View Full Code Here

    }
   
  }
 
  public static void main(String[] args) {
    MainFrame mainFrame = new MainFrame();
    TestCollisionsInFrame f = new TestCollisionsInFrame();
    List<Individual> list = f.getList();
    GamePanel game = new GamePanel(list);
    Control cont = new Control(list);
    game.addKeyListener(cont);
    mainFrame.replacePanel(game);
    TestCollisions thread = new TestCollisions(list, game);
    thread.start();
    mainFrame.setVisible(true);
  }
View Full Code Here

   *
   * @param mainFrame - The {@link oop13.space.views.MainFrameInterface} to observe.
   */
  public void setView(MainFrameInterface mainFrame) {
    this.mainFrame = mainFrame;
    MainMenu mainMenu = this.mainFrame.getMainMenu();
    mainMenu.attachObserver(this);
  }
View Full Code Here

  }

  @Override
  public void submitScore() {
    SubmitScoreController submitScoreController = new SubmitScoreController(this.gameOver, this.model);
    SubmitScore subScore = new SubmitScore(model.getStatistics().getScore());
    submitScoreController.setView(subScore);
  }
View Full Code Here

TOP

Related Classes of oop13.space.model.ShipShot

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.