public SpriteEntry getSpriteEntryFromCoords(int areaX, int areaY,
				int x, int y) {
			int[] wh;
			NPC npc;
			for (SpriteEntry e : spriteAreas[areaY][areaX]) {
				npc = npcs[e.npcID];
				wh = spriteGroupDims[npc.sprite];
				if ((e.x >= x - wh[0] / 2) && (e.x <= x + wh[0] / 2)
						&& (e.y >= y - wh[1] / 2) && (e.y <= y + wh[1] / 2)) {
					return e;
				}
			}
			return null;
		}