public bool opLessThan(UnitType other) { bool ret = bwapiPINVOKE.UnitType_opLessThan(swigCPtr, UnitType.getCPtr(other)); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
internal static HandleRef getCPtr(UnitType obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
public virtual bool morph(UnitType type) { bool ret = bwapiPINVOKE.Unit_morph(swigCPtr, UnitType.getCPtr(type)); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public UnitType whatResearches() { UnitType ret = new UnitType(bwapiPINVOKE.TechType_whatResearches(swigCPtr), true); 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 UnitType getUnitType() { UnitType ret = new UnitType(bwapiPINVOKE.UnitCommand_getUnitType(swigCPtr), true); return ret; }
public UnitType getTransport() { UnitType ret = new UnitType(bwapiPINVOKE.Race_getTransport(swigCPtr), true); return ret; }
public UnitType opAssign(UnitType other) { UnitType ret = new UnitType(bwapiPINVOKE.UnitType_opAssign(swigCPtr, UnitType.getCPtr(other)), false); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public UnitType getCenter() { UnitType ret = new UnitType(bwapiPINVOKE.Race_getCenter(swigCPtr), true); return ret; }
public UnitType getRefinery() { UnitType ret = new UnitType(bwapiPINVOKE.Race_getRefinery(swigCPtr), true); return ret; }
public virtual bool canMake(Unit builder, UnitType type) { bool ret = bwapiPINVOKE.Game_canMake(swigCPtr, Unit.getCPtr(builder), UnitType.getCPtr(type)); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.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 UnitTypeIntPair(UnitType t, int u) : this(bwapiPINVOKE.new_UnitTypeIntPair__SWIG_1(UnitType.getCPtr(t), u), true) { if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); }
public bool Equals(UnitType obj) { if (obj == null) return false; return (obj.swigCPtr.Handle == this.swigCPtr.Handle); }
public UnitType getSupplyProvider() { UnitType ret = new UnitType(bwapiPINVOKE.Race_getSupplyProvider(swigCPtr), true); return ret; }
public UnitType(UnitType other) : this(bwapiPINVOKE.new_UnitType__SWIG_2(UnitType.getCPtr(other)), true) { if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); }
public virtual double topSpeed(UnitType unit) { double ret = bwapiPINVOKE.Player_topSpeed(swigCPtr, UnitType.getCPtr(unit)); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public static UnitType getUnitType(string name) { UnitType ret = new UnitType(bwapiPINVOKE.getUnitType(name), true); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public virtual int groundWeaponDamageCooldown(UnitType unit) { int ret = bwapiPINVOKE.Player_groundWeaponDamageCooldown(swigCPtr, UnitType.getCPtr(unit)); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public static UnitCommand morph(Unit unit, UnitType type) { UnitCommand ret = new UnitCommand(bwapiPINVOKE.UnitCommand_morph(Unit.getCPtr(unit), UnitType.getCPtr(type)), true); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public virtual int armor(UnitType unit) { int ret = bwapiPINVOKE.Player_armor(swigCPtr, UnitType.getCPtr(unit)); 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 UnitType whatUpgrades() { UnitType ret = new UnitType(bwapiPINVOKE.UpgradeType_whatUpgrades(swigCPtr), true); return ret; }
public virtual UnitType getType() { UnitType ret = new UnitType(bwapiPINVOKE.Unit_getType(swigCPtr), true); return ret; }
public UnitType whatUses() { UnitType ret = new UnitType(bwapiPINVOKE.WeaponType_whatUses(swigCPtr), true); return ret; }