public static void getGroundDistanceMap(TilePosition start, RectangleArrayDouble distanceMap) { bwtaPINVOKE.getGroundDistanceMap(TilePosition.getCPtr(start), RectangleArrayDouble.getCPtr(distanceMap)); if (bwtaPINVOKE.SWIGPendingException.Pending) { throw bwtaPINVOKE.SWIGPendingException.Retrieve(); } }
public virtual bool placeCOP(TilePosition target) { bool ret = bwapiPINVOKE.Unit_placeCOP(swigCPtr, TilePosition.getCPtr(target)); if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual bool build(TilePosition target, UnitType type) { bool ret = bwapiPINVOKE.Unit_build(swigCPtr, TilePosition.getCPtr(target), UnitType.getCPtr(type)); if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static bool isConnected(TilePosition a, TilePosition b) { bool ret = bwtaPINVOKE.isConnected__SWIG_1(TilePosition.getCPtr(a), TilePosition.getCPtr(b)); if (bwtaPINVOKE.SWIGPendingException.Pending) { throw bwtaPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public double getDistance(TilePosition position) { double ret = bwapiPINVOKE.TilePosition_getDistance(swigCPtr, TilePosition.getCPtr(position)); if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public override bool placeCOP(TilePosition target) { bool ret = bwapiclientPINVOKE.UnitImpl_placeCOP(swigCPtr, TilePosition.getCPtr(target)); if (bwapiclientPINVOKE.SWIGPendingException.Pending) { throw bwapiclientPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool opLessThan(TilePosition TilePosition) { bool ret = bwapiPINVOKE.TilePosition_opLessThan(swigCPtr, TilePosition.getCPtr(TilePosition)); if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual int getGroundHeight(TilePosition position) { int ret = bwapiPINVOKE.Game_getGroundHeight__SWIG_1(swigCPtr, TilePosition.getCPtr(position)); if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual bool isBuildable(TilePosition position) { bool ret = bwapiPINVOKE.Game_isBuildable__SWIG_3(swigCPtr, TilePosition.getCPtr(position)); if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual bool hasCreep(TilePosition position) { bool ret = bwapiPINVOKE.Game_hasCreep__SWIG_1(swigCPtr, TilePosition.getCPtr(position)); if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual bool hasPower(TilePosition position, UnitType unitType) { bool ret = bwapiPINVOKE.Game_hasPower__SWIG_2(swigCPtr, TilePosition.getCPtr(position), UnitType.getCPtr(unitType)); if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual bool hasPower(TilePosition position, int tileWidth, int tileHeight) { bool ret = bwapiPINVOKE.Game_hasPower__SWIG_7(swigCPtr, TilePosition.getCPtr(position), tileWidth, tileHeight); if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static double getGroundDistance(TilePosition start, TilePosition end) { double ret = bwtaPINVOKE.getGroundDistance(TilePosition.getCPtr(start), TilePosition.getCPtr(end)); if (bwtaPINVOKE.SWIGPendingException.Pending) { throw bwtaPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public override bool build(TilePosition target, UnitType type) { bool ret = bwapiclientPINVOKE.UnitImpl_build(swigCPtr, TilePosition.getCPtr(target), UnitType.getCPtr(type)); if (bwapiclientPINVOKE.SWIGPendingException.Pending) { throw bwapiclientPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool hasPath(TilePosition destination) { bool ret = bwapiPINVOKE.TilePosition_hasPath(swigCPtr, TilePosition.getCPtr(destination)); if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static Region getRegion(TilePosition tileposition) { global::System.IntPtr cPtr = bwtaPINVOKE.getRegion__SWIG_1(TilePosition.getCPtr(tileposition)); Region ret = (cPtr == global::System.IntPtr.Zero) ? null : new Region(cPtr, false); if (bwtaPINVOKE.SWIGPendingException.Pending) { throw bwtaPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static Chokepoint getNearestChokepoint(TilePosition tileposition) { global::System.IntPtr cPtr = bwtaPINVOKE.getNearestChokepoint__SWIG_1(TilePosition.getCPtr(tileposition)); Chokepoint ret = (cPtr == global::System.IntPtr.Zero) ? null : new Chokepoint(cPtr, false); if (bwtaPINVOKE.SWIGPendingException.Pending) { throw bwtaPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual bool canBuildHere(Unit builder, TilePosition position, UnitType type) { bool ret = bwapiPINVOKE.Game_canBuildHere__SWIG_1(swigCPtr, Unit.getCPtr(builder), TilePosition.getCPtr(position), UnitType.getCPtr(type)); if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static TilePositionDoubleMap getGroundDistances(TilePosition start, TilePositionSet targets) { TilePositionDoubleMap ret = new TilePositionDoubleMap(bwtaPINVOKE.getGroundDistances(TilePosition.getCPtr(start), TilePositionSet.getCPtr(targets)), true); if (bwtaPINVOKE.SWIGPendingException.Pending) { throw bwtaPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
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); }
public Position(TilePosition position) : this(bwapiPINVOKE.new_Position__SWIG_1(TilePosition.getCPtr(position)), true) { if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } }
public static TilePositionVector getShortestPath(TilePosition start, TilePositionSet targets) { TilePositionVector ret = new TilePositionVector(bwtaPINVOKE.getShortestPath__SWIG_1(TilePosition.getCPtr(start), TilePositionSet.getCPtr(targets)), true); if (bwtaPINVOKE.SWIGPendingException.Pending) { throw bwtaPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool opNotEquals(TilePosition TilePosition) { bool ret = bwapiPINVOKE.TilePosition_opNotEquals(swigCPtr, TilePosition.getCPtr(TilePosition)); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public static UnitCommand placeCOP(Unit unit, TilePosition target) { UnitCommand ret = new UnitCommand(bwapiPINVOKE.UnitCommand_placeCOP(Unit.getCPtr(unit), TilePosition.getCPtr(target)), true); if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static UnitCommand build(Unit unit, TilePosition target, UnitType type) { UnitCommand ret = new UnitCommand(bwapiPINVOKE.UnitCommand_build(Unit.getCPtr(unit), TilePosition.getCPtr(target), UnitType.getCPtr(type)), true); if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public TilePositionDoublePair(TilePosition t, double u) : this(bwapiPINVOKE.new_TilePositionDoublePair__SWIG_1(TilePosition.getCPtr(t), u), true) { if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } }
public TilePosition opSubtract(TilePosition position) { TilePosition ret = new TilePosition(bwapiPINVOKE.TilePosition_opSubtract(swigCPtr, TilePosition.getCPtr(position)), false); if (bwapiPINVOKE.SWIGPendingException.Pending) { throw bwapiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }