public TilePositionSet(TilePositionSet other) : this(bwapiPINVOKE.new_TilePositionSet__SWIG_1(TilePositionSet.getCPtr(other)), true) { if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } }
public TilePositionSetEnumerator(TilePositionSet collection) { collectionRef = collection; keyCollection = new global::System.Collections.Generic.List <TilePosition>(collection.Values); currentIndex = -1; currentObject = null; currentSize = collectionRef.Count; }
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 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 virtual TilePositionSet getStartLocations() { TilePositionSet ret = new TilePositionSet(bwapiPINVOKE.Game_getStartLocations(swigCPtr), false); return(ret); }
public override TilePositionSet getStartLocations() { TilePositionSet ret = new TilePositionSet(bwapiclientPINVOKE.GameImpl_getStartLocations(swigCPtr), false); 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 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 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; }
public virtual TilePositionSet getStartLocations() { TilePositionSet ret = new TilePositionSet(bwapiPINVOKE.Game_getStartLocations(swigCPtr), false); return ret; }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TilePositionSet obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
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); }