MCPcopy Create free account
hub / github.com/HelloBush/Java_MHXYdemo / FindNearestPos

Method FindNearestPos

src/pkgDm/Dm2Java.java:1267–1269  ·  view source on GitHub ↗

根据部分Ex接口的返回值,然后在所有坐标里找出距离指定坐标最近的那个坐标 @param all_pos 坐标描述串。 一般是FindStrEx,FindStrFastEx,FindStrWithFontEx, FindColorEx, FindMultiColorEx,和FindPicEx的返回值. @param type 取值为0或者1,如果all_pos的内容是由FindPicEx,FindStrEx,FindStrFastEx,FindStrWithFontEx返回,那么取值为0,如果all_pos的内容是由FindColorEx, FindMultiColorEx返回,那么取值为1

(String all_pos,int type,int x,int y)

Source from the content-addressed store, hash-verified

1265 * @return 返回的格式和type有关,如果type为0,那么返回的格式是"id,x,y";如果type为1,那么返回的格式是"x,y".
1266 */
1267 public String FindNearestPos(String all_pos,int type,int x,int y){
1268 return Dispatch.call(dm,"FindNearestPos",all_pos,type,x,y).getString();
1269 }
1270
1271 /**
1272 * 根据部分Ex接口的返回值,然后对所有坐标根据对指定坐标的距离进行从小到大的排序.

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
getStringMethod · 0.45

Tested by

no test coverage detected