示例#1
0
        public static BaseLocation getStartLocation(Player player)
        {
            global::System.IntPtr cPtr = bwtaPINVOKE.getStartLocation(Player.getCPtr(player));
            BaseLocation          ret  = (cPtr == global::System.IntPtr.Zero) ? null : new BaseLocation(cPtr, false);

            return(ret);
        }
示例#2
0
        public static BaseLocation getNearestBaseLocation(int x, int y)
        {
            global::System.IntPtr cPtr = bwtaPINVOKE.getNearestBaseLocation__SWIG_0(x, y);
            BaseLocation          ret  = (cPtr == global::System.IntPtr.Zero) ? null : new BaseLocation(cPtr, false);

            return(ret);
        }
示例#3
0
 public bool Equals(BaseLocation obj)
 {
     if (obj == null)
     {
         return(false);
     }
     return(obj.swigCPtr.Handle == this.swigCPtr.Handle);
 }
示例#4
0
        public static BaseLocation getNearestBaseLocation(Position position)
        {
            global::System.IntPtr cPtr = bwtaPINVOKE.getNearestBaseLocation__SWIG_2(Position.getCPtr(position));
            BaseLocation          ret  = (cPtr == global::System.IntPtr.Zero) ? null : new BaseLocation(cPtr, false);

            if (bwtaPINVOKE.SWIGPendingException.Pending)
            {
                throw bwtaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#5
0
 public EcoBaseAI(GameState state, BaseLocation location, BW.Unit nexus)
 {
     State = state;
     this.nexus = nexus;
     Probes = new List<BW.Unit>();
     BaseMinerals = new List<BW.Unit>();
     Location = location;
     foreach (var patch in location.getStaticMinerals())
     {
         BaseMinerals.Add(new BW.Unit(patch));
     }
 }
示例#6
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(BaseLocation obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
示例#7
0
        public virtual double getAirDistance(BaseLocation other)
        {
            double ret = bwtaPINVOKE.BaseLocation_getAirDistance(swigCPtr, BaseLocation.getCPtr(other));

            return(ret);
        }
public bool Equals(BaseLocation obj) 
{
    if (obj == null) return false;
    return (obj.swigCPtr.Handle == this.swigCPtr.Handle);
}
 internal static HandleRef getCPtr(BaseLocation obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
 public virtual double getAirDistance(BaseLocation other) {
   double ret = bwtaPINVOKE.BaseLocation_getAirDistance(swigCPtr, BaseLocation.getCPtr(other));
   return ret;
 }
示例#11
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(BaseLocation obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }