/// <summary> /// 根据实际坐标获取相对于该坐标的方向 /// </summary> /// <param name="realX"></param> /// <param name="realY"></param> /// <returns></returns> public ActionDirection GetDirectionByRealPos(int realX, int realY) { return(ActionDirectionUtil.GetDirection8(this.realX, this.realY, realX, realY)); }
/// <summary> /// 根据坐标获取相对于该坐标的方向 /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <returns></returns> public ActionDirection GetDirectionByMapPos(int x, int y) { return(ActionDirectionUtil.GetDirection8(this.x, this.y, x, y)); }