Package com.szuppe.jakub

Source Code of com.szuppe.jakub.Main

/**
*
*/
package com.szuppe.jakub;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

import com.szuppe.jakub.model.Model;
import com.szuppe.jakub.controller.Controller;
import com.szuppe.jakub.view.View;
import com.szuppe.jakub.events.AppEvent;

/**
* <h3>Vaus Game</h3>
* <br/>       
* <p>Gra <i>Vaus</i> jest klonem znanej arcade'owej gry Arkanoid.</p>
* @author Jakub Szuppe <j.szuppe at gmail.com>
*/
public class Main
{
  /**
   * @param args
   */
  public static void main(String[] args)
  {
    // Kolejka blokujÄ…ca dla widoku i kontrolera.
    final BlockingQueue<AppEvent> eventsBlockingQueue = new LinkedBlockingQueue<AppEvent>();
    // model
    final Model model = new Model();
    // widok
    final View view = new View(eventsBlockingQueue);
    // kontroler
    final Controller controller = new Controller(model, view, eventsBlockingQueue);
    // Uruchomienie.
    controller.init();
  }
}
TOP

Related Classes of com.szuppe.jakub.Main

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.