package ge.edu.freeuni.sdp.arkanoid.view.Swing;

import com.googlecode.lanterna.terminal.Terminal;
import ge.edu.freeuni.sdp.arkanoid.presenter.GameOverPresenter;
import ge.edu.freeuni.sdp.arkanoid.presenter.LevelPresenter;
import ge.edu.freeuni.sdp.arkanoid.presenter.RoomPresenter;
import ge.edu.freeuni.sdp.arkanoid.view.*;

import javax.swing.*;

/**
 * Created by kaneki on 4/11/16.
 */
public class SwingViewFactroy implements ViewFactory{

    private final JFrame frame;
    
    public SwingViewFactroy(JFrame frame){
        this.frame = frame;
    }

    @Override
    public GameOverView getGameOverView(GameOverPresenter presenter) {
        return new SwingGameOverView(presenter, frame);
    }

    @Override
    public LevelView getLevelView(LevelPresenter presenter) {
        return null;
    }

    @Override
    public RoomView getRoomView(RoomPresenter roomPresenter) {
        return new SwingRoomView(roomPresenter, frame);
    }

    @Override
    public IntroView getIntroView() {
        return null;
    }
}

@@ -907,43 +907,12 @@
 new 
-SwingRoomView(roomPresenter, frame)
+null
 ;%0A  

Update SwingViewFactroy.java