Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public bool Equals(BaseLocation obj)
 {
     if (obj == null)
     {
         return(false);
     }
     return(obj.swigCPtr.Handle == this.swigCPtr.Handle);
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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));
     }
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 7
0
        public virtual double getAirDistance(BaseLocation other)
        {
            double ret = bwtaPINVOKE.BaseLocation_getAirDistance(swigCPtr, BaseLocation.getCPtr(other));

            return(ret);
        }
Ejemplo n.º 8
0
public bool Equals(BaseLocation obj) 
{
    if (obj == null) return false;
    return (obj.swigCPtr.Handle == this.swigCPtr.Handle);
}
Ejemplo n.º 9
0
 internal static HandleRef getCPtr(BaseLocation obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Ejemplo n.º 10
0
 public virtual double getAirDistance(BaseLocation other) {
   double ret = bwtaPINVOKE.BaseLocation_getAirDistance(swigCPtr, BaseLocation.getCPtr(other));
   return ret;
 }
Ejemplo n.º 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;
 }