public static int convertToInt(StateActor state){

		switch (state){

		case UP : return 8;
		case DOWN : return 2;
		case LEFT : return 4;
		case RIGHT : return 6;
		case ATTACKINGUP : return 88;
		case ATTACKINGDOWN : return 22;
		case ATTACKINGLEFT : return 44;
		case ATTACKINGRIGHT : return 66;
		default : return 5;
		
		}
		
	}