| 134 | } |
| 135 | |
| 136 | STDMETHODIMP OpAutomation::AStarFindPath(LONG mapWidth, LONG mapHeight, BSTR disable_points, LONG beginX, LONG beginY, |
| 137 | LONG endX, LONG endY, BSTR *path) { |
| 138 | wstring s; |
| 139 | obj.AStarFindPath(mapWidth, mapHeight, disable_points, beginX, beginY, endX, endY, s); |
| 140 | |
| 141 | CComBSTR newstr; |
| 142 | newstr.Append(s.data()); |
| 143 | newstr.CopyTo(path); |
| 144 | return S_OK; |
| 145 | } |
| 146 | |
| 147 | // 根据部分Ex接口的返回值,然后在所有坐标里找出距离指定坐标最近的那个坐标. |
| 148 | STDMETHODIMP OpAutomation::FindNearestPos(BSTR all_pos, LONG type, LONG x, LONG y, BSTR *retstr) { |
no test coverage detected