public TilePositionDoubleMap(TilePositionDoubleMap other) : this(bwapiPINVOKE.new_TilePositionDoubleMap__SWIG_1(TilePositionDoubleMap.getCPtr(other)), true)
 {
     if (bwapiPINVOKE.SWIGPendingException.Pending)
     {
         throw bwapiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public TilePositionDoubleMapEnumerator(TilePositionDoubleMap collection)
 {
     collectionRef = collection;
     keyCollection = new global::System.Collections.Generic.List <TilePosition>(collection.Keys);
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
示例#3
0
        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);
        }
示例#4
0
 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;
 }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TilePositionDoubleMap obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }