public TilePositionSet(TilePositionSet other) : this(bwapiPINVOKE.new_TilePositionSet__SWIG_1(TilePositionSet.getCPtr(other)), true) { if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } }
public static TilePositionDoubleMap getGroundDistances(TilePosition start, TilePositionSet targets) { TilePositionDoubleMap ret = new TilePositionDoubleMap(bwtaPINVOKE.getGroundDistances(TilePosition.getCPtr(start), TilePositionSet.getCPtr(targets)), true); if (bwtaPINVOKE.SWIGPendingException.Pending) { throw bwtaPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static TilePositionVector getShortestPath(TilePosition start, TilePositionSet targets) { TilePositionVector ret = new TilePositionVector(bwtaPINVOKE.getShortestPath__SWIG_1(TilePosition.getCPtr(start), TilePositionSet.getCPtr(targets)), true); if (bwtaPINVOKE.SWIGPendingException.Pending) { throw bwtaPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static TilePositionDoublePair getNearestTilePosition(TilePosition start, TilePositionSet targets) { TilePositionDoublePair ret = new TilePositionDoublePair(bwtaPINVOKE.getNearestTilePosition(TilePosition.getCPtr(start), TilePositionSet.getCPtr(targets)), true); if (bwtaPINVOKE.SWIGPendingException.Pending) { throw bwtaPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }