// Path: src/com/redomar/game/menu/DedicatedJFrame.java
// public class DedicatedJFrame extends Canvas {
// 
// 	private static final long serialVersionUID = 1L;
// 	private static JFrame frame;
// 
// 	public DedicatedJFrame(int WIDTH, int HEIGHT, int SCALE, String NAME) {
// 		setMinimumSize(new Dimension(WIDTH * SCALE, HEIGHT * SCALE));
// 		setMaximumSize(new Dimension(WIDTH * SCALE, HEIGHT * SCALE));
// 		setPreferredSize(new Dimension(WIDTH * SCALE, HEIGHT * SCALE));
// 
// 		setFrame(new JFrame(NAME));
// 		//frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// 		frame.setLayout(new BorderLayout());
// 		frame.add(this, BorderLayout.CENTER);
// 		frame.pack();
// 		frame.setResizable(false);
// 		frame.setLocationRelativeTo(null);
// 		frame.setVisible(true);
// 	}
// 
// 	public static JFrame getFrameStatic() {
// 		return frame;
// 	}
// 
// 	public JFrame getFrame() {
// 		return frame;
// 	}
// 
// 	public void setFrame(JFrame frame) {
// 		DedicatedJFrame.frame = frame;
// 	}
// 
// 	public void stopFrame() {
// 		frame.dispose();
// 	}
// 
// }


import com.redomar.game.menu.DedicatedJFrame;
import java.awt.*;
import java.awt.image.BufferStrategy;
package com.redomar.game.objects;



public class InventoryWindow implements Runnable{

	private static final int WIDTH = 160;
	private static final int HEIGHT = (WIDTH / 3 * 2);
	private static final int SCALE = 2;
	private static final String NAME = "Inventory";

	private static boolean running = false;

	private static DedicatedJFrame frame;
	private static InventoryHandler window;

	public static InventoryHandler getWindow() {
		return window;
	}

	public static void setWindow(InventoryHandler inventoryHandler) {
		InventoryWindow.window = inventoryHandler;
	}

	public synchronized void start(){
		running = true;
// Path: src/com/redomar/game/menu/DedicatedJFrame.java
// public class DedicatedJFrame extends Canvas {
// 
// 	private static final long serialVersionUID = 1L;
// 	private static JFrame frame;
// 
// 	public DedicatedJFrame(int WIDTH, int HEIGHT, int SCALE, String NAME) {
// 		setMinimumSize(new Dimension(WIDTH * SCALE, HEIGHT * SCALE));
// 		setMaximumSize(new Dimension(WIDTH * SCALE, HEIGHT * SCALE));
// 		setPreferredSize(new Dimension(WIDTH * SCALE, HEIGHT * SCALE));
// 
// 		setFrame(new JFrame(NAME));
// 		//frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// 		frame.setLayout(new BorderLayout());
// 		frame.add(this, BorderLayout.CENTER);
// 		frame.pack();
// 		frame.setResizable(false);
// 		frame.setLocationRelativeTo(null);
// 		frame.setVisible(true);
// 	}
// 
// 	public static JFrame getFrameStatic() {
// 		return frame;
// 	}
// 
// 	public JFrame getFrame() {
// 		return frame;
// 	}
// 
// 	public void setFrame(JFrame frame) {
// 		DedicatedJFrame.frame = frame;
// 	}
// 
// 	public void stopFrame() {
// 		frame.dispose();
// 	}
// 
// }


// Path: src/com/redomar/game/objects/InventoryWindow.java
import com.redomar.game.menu.DedicatedJFrame;
import java.awt.*;
import java.awt.image.BufferStrategy;

package com.redomar.game.objects;



public class InventoryWindow implements Runnable{

	private static final int WIDTH = 160;
	private static final int HEIGHT = (WIDTH / 3 * 2);
	private static final int SCALE = 2;
	private static final String NAME = "Inventory";

	private static boolean running = false;

	private static DedicatedJFrame frame;
	private static InventoryHandler window;

	public static InventoryHandler getWindow() {
		return window;
	}

	public static void setWindow(InventoryHandler inventoryHandler) {
		InventoryWindow.window = inventoryHandler;
	}

	public synchronized void start(){
		running = true;
		setFrame(new DedicatedJFrame(WIDTH, HEIGHT, SCALE, NAME));