movingData = new int[] { 0, mx, my, areaXY[0], areaXY[1], spNum }; setCursor(Cursor .getPredefinedCursor(Cursor.MOVE_CURSOR));
movingData = new int[] { 0, e.getX(), e.getY(), -1 }; movingObject = EbMap.getSpriteLocation(areaXY[0], areaXY[1], spNum); EbMap.removeSprite(areaXY[0], areaXY[1], spNum); setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));
		public void mousePressed(MouseEvent e) {			int mx = e.getX(), my = e.getY();			if (e.getButton() == 1) {				if ((getModeProps()[3] >= 2) && (movingData[0] == -1)) {					int spNum = getSpriteNum(mx, my);					if (spNum != -1) {						int[] areaXY = getAreaXY(mx, my);						movingData = new int[] { 0, mx, my, areaXY[0],								areaXY[1], spNum };						setCursor(Cursor								.getPredefinedCursor(Cursor.MOVE_CURSOR));					}				} else if ((getModeProps()[4] >= 2) && (movingData[0] == -1)) {					int doorNum = getDoorNum(mx, my);					if (doorNum != -1) {						int[] areaXY = getAreaXY(mx, my);						movingData = new int[] { 1, mx, my, areaXY[0],								areaXY[1], doorNum };						setCursor(Cursor								.getPredefinedCursor(Cursor.MOVE_CURSOR));					}				}			}			if (getModeProps()[8] >= 2 && movingHotspot == -1					&& ((e.getButton() == 1) || (e.getButton() == 3))) {				int tileX = getMapTileX(), tileY = getMapTileY();				for (int i = 0; i < visibleHotspots.size(); i++) {					int num = ((Integer) visibleHotspots.get(i)).intValue();					HotspotEditor.Hotspot spot = HotspotEditor.getHotspot(num);					int xDiff = e.getX()							- (spot.getX1() * 8 - (MapEditor.tileWidth * tileX)), yDiff = e							.getY()							- (spot.getY1() * 8 - (MapEditor.tileHeight * tileY));					if (xDiff <= ((spot.getX2() - spot.getX1()) * 8)							&& xDiff >= 0							&& yDiff <= ((spot.getY2() - spot.getY1()) * 8)							&& yDiff >= 0) {						if (e.getButton() == 3)							net.starmen.pkhack.JHack.main.showModule(									HotspotEditor.class, new Integer(num));						else {							if ((xDiff >= ((spot.getX2() - spot.getX1() - 1) * 8))									&& (yDiff >= ((spot.getY2() - spot.getY1() - 1) * 8))) {								setCursor(Cursor										.getPredefinedCursor(Cursor.SE_RESIZE_CURSOR));								movingData = new int[] { 3, e.getX(), e.getY(),										num, 0 };							} else {								setCursor(Cursor										.getPredefinedCursor(Cursor.MOVE_CURSOR));								movingData = new int[] { 2, e.getX(), e.getY(),										num };							}						}						return;					}				}			}		}