Examples of GamePanel


Examples of oop13.space.views.GamePanel

  //Creates new TestCollisionsToShip
  public TestCollisionsToShip() {
    this.listIndividuals = new CopyOnWriteArrayList<>();
    this.spaceShip = new ShipTest();
    this.listIndividuals.add(this.spaceShip);
    this.testPanel = new GamePanel(this.listIndividuals);
    this.testPanel.addKeyListener(new Control(this.listIndividuals));
    this.testPanel.setFocusable(true);
  }
View Full Code Here

Examples of oop13.space.views.GamePanel

  public void playAgain() {
    this.model.resetGame();
    this.model.getStatistics().resetStatistics();
    this.model.initIndividuals();
    GameController gameController = new GameController(this.mainFrame, this.model);
    GamePanel gamePanel = new GamePanel(this.model.getList());
    gamePanel.getScoreLabel().setText(GameStrings.SCORE + model.getStatistics().getScore());
    gamePanel.getLivesLabel().setText(GameStrings.LIVES + model.getShip().getLives());
    gameController.setView(gamePanel);
    gamePanel.requestFocusInWindow();
    gamePanel.addKeyListener(new ShipController(this.model));
    this.mainFrame.replacePanel(gamePanel);
  }
View Full Code Here

Examples of oop13.space.views.GamePanel

    this.model.resetGame();
    this.model.getStatistics().resetStatistics();
    this.model.initIndividuals();
    this.model.initAchievements();
    GameController gameController = new GameController(this.mainFrame, this.model);
    GamePanel gamePanel = new GamePanel(this.model.getList());
    gamePanel.getScoreLabel().setText(GameStrings.SCORE + model.getStatistics().getScore());
    gamePanel.getLivesLabel().setText(GameStrings.LIVES + model.getShip().getLives());
    gameController.setView(gamePanel);
    gamePanel.requestFocusInWindow();
    gamePanel.addKeyListener(new ShipController(this.model));
    this.mainFrame.replacePanel(gamePanel);
  }
View Full Code Here

Examples of oop13.space.views.GamePanel

 
  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

Examples of org.drools.games.GamePanel

        frame.waitForPaint();
    }


    public GamePanel drawSensorPanel() {
        GamePanel sensorPanel = new GamePanel("sensor", Color.WHITE ); //new SensorPanel( this );
        FlowLayout flowLayout = (FlowLayout) sensorPanel.getLayout();
        flowLayout.setVgap( 10 );
        sensorPanel.setBackground( Color.WHITE );
        return sensorPanel;
    }
View Full Code Here

Examples of org.drools.games.GamePanel

        sensorPanel.setBackground( Color.WHITE );
        return sensorPanel;
    }

    public GamePanel drawCave() {
        GamePanel cavelPanel = new GamePanel("cave", Color.WHITE );
        FlowLayout flowLayout = (FlowLayout) cavelPanel.getLayout();
        flowLayout.setVgap( 10 );
        cavelPanel.setBackground( Color.WHITE );
        return cavelPanel;
    }
View Full Code Here

Examples of tamagotchi.view.GamePanel

     * Change l'ecran courant pour celui du jeu
     * @see GamePanel
     * @see GameModel
     */
    public void switchToGame() {
        currentPane = new GamePanel(new GameModel(this));
        setChanged();
        notifyObservers();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.