package bt;

/**
 * BTMain中NetLayer回调接口
 * 
 * @author DZF
 * @version 1.0.0
 */
public interface BTListener {
	
	public final static byte EVENT_PLAYER_FOUND= 0;
	public final static byte EVENT_HOST_FOUND = 1;
	public final static byte EVENT_PLAYER_INFO = 10;
	public final static byte EVENT_HOST_INFO = 11;
	public final static byte EVENT_RECEIVED_SYSTEM_MSG = 2;
	public final static byte EVENT_RECEIVED_POSITION_AND_ACTION = 3;
	public final static byte EVENT_RECEIVED_READY_INFO = 4;
	public final static byte EVENT_LEAVE = 5;

	
	/**
	 * BTMain 接收蓝牙事件处理方法
	 * @param action 上述定义的事件代号
	 * @param endpt 事件响应终端
	 * @param m 随着蓝牙事件动作值不同而不同
	 */
	public void handAction(byte action , EndPoint endpt,MsgPacket m);

}
