示例#1
0
 public bool opLessThan(UnitType other) {
   bool ret = bwapiPINVOKE.UnitType_opLessThan(swigCPtr, UnitType.getCPtr(other));
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#2
0
 internal static HandleRef getCPtr(UnitType obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
示例#3
0
 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;
 }
示例#4
0
 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;
 }
示例#7
0
 public UnitType getTransport() {
   UnitType ret = new UnitType(bwapiPINVOKE.Race_getTransport(swigCPtr), true);
   return ret;
 }
示例#8
0
 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;
 }
示例#9
0
 public UnitType getCenter() {
   UnitType ret = new UnitType(bwapiPINVOKE.Race_getCenter(swigCPtr), true);
   return ret;
 }
示例#10
0
 public UnitType getRefinery() {
   UnitType ret = new UnitType(bwapiPINVOKE.Race_getRefinery(swigCPtr), true);
   return ret;
 }
示例#11
0
 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;
 }
示例#12
0
 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();
 }
示例#14
0
public bool Equals(UnitType obj) 
{
    if (obj == null) return false;
    return (obj.swigCPtr.Handle == this.swigCPtr.Handle);
}
示例#15
0
 public UnitType getSupplyProvider() {
   UnitType ret = new UnitType(bwapiPINVOKE.Race_getSupplyProvider(swigCPtr), true);
   return ret;
 }
示例#16
0
 public UnitType(UnitType other) : this(bwapiPINVOKE.new_UnitType__SWIG_2(UnitType.getCPtr(other)), true) {
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
 }
示例#17
0
 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;
 }
示例#18
0
 public static UnitType getUnitType(string name) {
   UnitType ret = new UnitType(bwapiPINVOKE.getUnitType(name), true);
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#19
0
 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;
 }
示例#21
0
 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;
 }
示例#22
0
 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;
 }
示例#24
0
 public virtual UnitType getType() {
   UnitType ret = new UnitType(bwapiPINVOKE.Unit_getType(swigCPtr), true);
   return ret;
 }
示例#25
0
 public UnitType whatUses() {
   UnitType ret = new UnitType(bwapiPINVOKE.WeaponType_whatUses(swigCPtr), true);
   return ret;
 }