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); }
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); }
public bool Equals(BaseLocation obj) { if (obj == null) { return(false); } return(obj.swigCPtr.Handle == this.swigCPtr.Handle); }
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); }
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)); } }
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); }
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; }
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; }