package gUI;

/**
 * Chapter 7: BallApp.java Displays a window with a red circle on a white
 * background. Similar to FirstApp.java (in Chapter 1), but written without
 * Wheels. Used (with modifications) in all programs later in this book.
 */
//Modified by Alexander James Ehwalt Ryan since November 5, 2008, to emulate Pong.
//Modified again by Alexander James Ehwalt Ryan, Student Number 301071161, of IAT 265 D-105 to Bring about a RTS style game in which one is to avoid getting seen by the enemy while trying to get to the end of the level, 
//indicated by a cyan square. The user is blocked by many things, mostly enemies and objects.
public class FortressSneaker extends javax.swing.JFrame {

    /**
     *
     */
    private static final long serialVersionUID = 8193361646614660812L;
    public PirateNinjaBoxerPanel bP;
    public PirateNinjaBoxerPanel bPa;
    public static FortressSneaker app;
//    
    private final int INIT_X = 100; // attributes
    private final int INIT_Y = 100;
    private final int INIT_Z = 100;
//    
//    public CombatModel obA;

    public FortressSneaker(String title, int level, int xAxis, int yAxis, int zAxis, CombatModel obA) {
        super(title);
        this.setSize(600, 600);
        this.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
//        System.out.println("Hello world!");
//        obA = new CombatModel(INIT_X, INIT_Y, INIT_Z, 1);
        
        bP = new PirateNinjaBoxerPanel(this, level, xAxis, yAxis, zAxis, obA);
        this.add(bP);
        this.addKeyListener(bP);
//        System.out.println("Hello world!");
        this.setVisible(true);
        
        this.repaint();

    }

//    public static void main(String[] args) {
//
//
//        javax.swing.SwingUtilities.invokeLater(new Runnable() {
//
//            
//            public void run() {
////                obA = CombatModel(INIT_X, INIT_Y, INIT_Z, 1);
//                
//                app = new FortressSneaker("Fortress Sneaker.", 1);
//            }
//        });
//
//    }
}
