public Item(GameWindow w, int x, int y, int type){
		
		window = w;
		panel = w.panel;
		energy =100;
		posX =x;
		posY =y;
		bounds = new Rectangle(posX,posY,32,32);
		
		itemType = type;
		
		switch(itemType){
			case(0):			//Waffe
				damage = 1;
				name = "Magnum";
				break;
			case(1):			//medikit, nahrung
				healthPts = 10;
				name = "Medikit";
				break;
			case(2):			//ammo
				shots = 10;
				name = "Ammo";
				break;
			case(3):			//div objekt
				healthPts = 5;
				name = "Pills";
				break;
			case(4):
				money = 20;
				name = "some money";
				break;
			case(5):
				money =30;
				name = "some money";
				break;
		}
		img = window.itemHandler.picturesOfAllItems[itemType];
		invMiniImg = window.itemHandler.picturesInventory[itemType];
	}