package com.qiyou.mb.android.utils.enums;

public enum wpFlag { 

//-1,0,1,2,3,...(turnLeft,start,turnRight,paused,finished,...)
	NORMAL(-2),TURNLEFT(-1),START(0),TURNRIGHT(1),TURNBACK(2),MAXR(3),END(4),CUST(5),TENT(6),REST(7),CHECK(8),HAND(9);

wpFlag(int FLAG){
	this.FLAG=FLAG;
}
private int FLAG=-2;
/*@Override
public String toString() {
	return String.valueOf(this.FLAG);
}*/

public String toCHString() {

	switch(FLAG){
	case -2:{return "普通";}
	case -1:{return "左转";}
	case 0:{return "起点";}
	case 1:{return "右转";}
	case 2:return "掉头";
	case 3:return "最远"; 
	case 4:return "终点"; 
	case 5:return "途径";  
	case 6:return "扎营"; 
	case 7:return "休息"; 
	case 8:return "打卡"; 
	case 9:return "手绘";
	default: return "普通";
	}
 
}



public int toInt() {

return FLAG;
 
}
public static wpFlag valueOf(int type) {
// TODO Auto-generated method stub
switch(type){
	case -2:{return NORMAL;}
	case -1:{return TURNLEFT;}
	case 0:{return START;}
	case 1:{return TURNRIGHT;}
	case 2:return TURNBACK;
	case 3:return MAXR; 
	case 4:return END; 
	case 5:return CUST; 
	case 6:return TENT; 
	case 7:return REST; 
	case 8:return CHECK;
	case 9:return HAND;
	default: return NORMAL;
	} 
}
}