MCPcopy Create free account
hub / github.com/WallBreaker2/op / AStarFindPath

Method AStarFindPath

libop/com/OpAutomation.cpp:136–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136STDMETHODIMP 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接口的返回值,然后在所有坐标里找出距离指定坐标最近的那个坐标.
148STDMETHODIMP OpAutomation::FindNearestPos(BSTR all_pos, LONG type, LONG x, LONG y, BSTR *retstr) {

Callers 1

OpAStarFindPathFunction · 0.45

Calls 2

CopyToMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected