public static Chokepoint getNearestChokepoint(int x, int y)
        {
            global::System.IntPtr cPtr = bwtaPINVOKE.getNearestChokepoint__SWIG_0(x, y);
            Chokepoint            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new Chokepoint(cPtr, false);

            return(ret);
        }
Example #2
0
 public bool Equals(Chokepoint obj)
 {
     if (obj == null)
     {
         return(false);
     }
     return(obj.swigCPtr.Handle == this.swigCPtr.Handle);
 }
        public static Chokepoint getNearestChokepoint(Position position)
        {
            global::System.IntPtr cPtr = bwtaPINVOKE.getNearestChokepoint__SWIG_2(Position.getCPtr(position));
            Chokepoint            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new Chokepoint(cPtr, false);

            if (bwtaPINVOKE.SWIGPendingException.Pending)
            {
                throw bwtaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #4
0
public bool Equals(Chokepoint obj) 
{
    if (obj == null) return false;
    return (obj.swigCPtr.Handle == this.swigCPtr.Handle);
}
Example #5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Chokepoint obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
Example #6
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Chokepoint obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 internal static HandleRef getCPtr(Chokepoint obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }