public static int convertDirX(DirectionX dirx) {
		int r;
		switch (dirx) {
		case LEFT:
			r = -1;
			break;
		case NOTHING:
			r = 0;
			break;
		case RIGHT:
			r = 1;
			break;
		default:
			r = 0;
			break;
		
		}
		return r;
	}