int[] areaXY = gfxcontrol.getAreaXY(mousex, mousey); TPTEditor.TPTEntry tpt = TPTEditor.tptEntries[EbMap.getSpriteTpt( areaXY[0], areaXY[1], spNum)]; movingSpriteInfo = new int[] { areaXY[0], areaXY[1], spNum, tpt.getSprite(), tpt.getDirection() }; movingSprite = true;
int mousex = e.getX(); int mousey = e.getY(); int spNum = gfxcontrol.getSpriteNum( mousex, mousey); if (spNum != -1) { int[] areaXY = gfxcontrol.getAreaXY(mousex, mousey); TPTEditor.TPTEntry tpt = TPTEditor.tptEntries[EbMap.getSpriteTpt( areaXY[0], areaXY[1], spNum)]; movingSpriteInfo = new int[] { areaXY[0], areaXY[1], spNum, tpt.getSprite(), tpt.getDirection() }; movingSprite = true; } } else if ((gfxcontrol.getModeProps()[4] >= 2) && (! movingDoor)) { int doorNum = gfxcontrol.getDoorNum( e.getX(), e.getY()); if (doorNum != -1) { int[] doorCoords = gfxcontrol.getCoords(e.getX(), e.getY()); movingDoorInfo = new int[] { doorCoords[0], doorCoords[1], doorNum }; movingDoor = true; }
        public void mousePressed(MouseEvent e)        {            if ((e.getButton() == 1)            		&& (gfxcontrol.getModeProps()[3] == 1)					&& (! movingSprite))            {        		int mousex = e.getX();        		int mousey = e.getY();            	int spNum = gfxcontrol.getSpriteNum(            			mousex, mousey);            	if (spNum != -1)            	{                	int[] areaXY =                		gfxcontrol.getAreaXY(mousex, mousey);                	TPTEditor.TPTEntry tpt =                 		TPTEditor.tptEntries[EbMap.getSpriteTpt(							areaXY[0], areaXY[1], spNum)];            		movingSpriteInfo =             			new int[] {            				areaXY[0], areaXY[1], spNum,							tpt.getSprite(), tpt.getDirection()            		};            		movingSprite = true;            	}            }        }