public TilePositionDoublePair(TilePositionDoublePair p) : this(bwapiPINVOKE.new_TilePositionDoublePair__SWIG_2(TilePositionDoublePair.getCPtr(p)), true)
 {
     if (bwapiPINVOKE.SWIGPendingException.Pending)
     {
         throw bwapiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public bool Equals(TilePositionDoublePair obj)
 {
     if (obj == null)
     {
         return(false);
     }
     return(obj.swigCPtr.Handle == this.swigCPtr.Handle);
 }
Esempio n. 3
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);
        }
Esempio n. 4
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;
 }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TilePositionDoublePair obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 public TilePositionDoublePair(TilePositionDoublePair p) : this(bwapiPINVOKE.new_TilePositionDoublePair__SWIG_2(TilePositionDoublePair.getCPtr(p)), true) {
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
 }
public bool Equals(TilePositionDoublePair obj) 
{
    if (obj == null) return false;
    return (obj.swigCPtr.Handle == this.swigCPtr.Handle);
}
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TilePositionDoublePair obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }