private void selectEntity() {
		int x = (input.mouse.x - POS_TILESET_X) / Tile.SIZE + tilesetDisplayStart.x;
		int y = (input.mouse.y - POS_TILESET_Y) / Tile.SIZE + tilesetDisplayStart.y;
		
		if ( y * NB_COL_ENTITY_AREA + x < EnemyType.values().length) {
			if (currentEntity == EnemyType.values()[y * NB_COL_ENTITY_AREA + x]) {
				inSelectionOfEntity = !inSelectionOfEntity;
				if (inSelectionOfEntity)
					currentSelectedEntityXML = null;
			}
			else {
				currentEntity = EnemyType.values()[y * NB_COL_ENTITY_AREA + x];
				inSelectionOfEntity = true;
				currentSelectedEntityXML = null;
			}
		}
	}