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;
 }
예제 #3
0
        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);
        }
예제 #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);
        }
예제 #5
0
        public virtual TilePositionSet getStartLocations()
        {
            TilePositionSet ret = new TilePositionSet(bwapiPINVOKE.Game_getStartLocations(swigCPtr), false);

            return(ret);
        }
예제 #6
0
 public override TilePositionSet getStartLocations() {
   TilePositionSet ret = new TilePositionSet(bwapiclientPINVOKE.GameImpl_getStartLocations(swigCPtr), false);
   return ret;
 }
예제 #7
0
 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;
 }
예제 #8
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;
 }
예제 #9
0
 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;
 }
예제 #10
0
 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);
 }
예제 #12
0
        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);
        }