public virtual bool upgrade(UpgradeType upgrade) {
   bool ret = bwapiPINVOKE.Unit_upgrade(swigCPtr, UpgradeType.getCPtr(upgrade));
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public virtual int getUpgradeLevel(UpgradeType upgrade) {
   int ret = bwapiPINVOKE.Unit_getUpgradeLevel(swigCPtr, UpgradeType.getCPtr(upgrade));
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public virtual UpgradeType getUpgrade() {
   UpgradeType ret = new UpgradeType(bwapiPINVOKE.Unit_getUpgrade(swigCPtr), true);
   return ret;
 }
 public static UnitCommand upgrade(Unit unit, UpgradeType upgrade) {
   UnitCommand ret = new UnitCommand(bwapiPINVOKE.UnitCommand_upgrade(Unit.getCPtr(unit), UpgradeType.getCPtr(upgrade)), true);
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public UpgradeType getUpgradeType() {
   UpgradeType ret = new UpgradeType(bwapiPINVOKE.UnitCommand_getUpgradeType(swigCPtr), true);
   return ret;
 }
 public UpgradeType armorUpgrade() {
   UpgradeType ret = new UpgradeType(bwapiPINVOKE.UnitType_armorUpgrade(swigCPtr), true);
   return ret;
 }
 public static UpgradeType getUpgradeType(string name) {
   UpgradeType ret = new UpgradeType(bwapiPINVOKE.getUpgradeType(name), true);
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public UpgradeType(UpgradeType other) : this(bwapiPINVOKE.new_UpgradeType__SWIG_2(UpgradeType.getCPtr(other)), true) {
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
 }
 public UpgradeType opAssign(UpgradeType other) {
   UpgradeType ret = new UpgradeType(bwapiPINVOKE.UpgradeType_opAssign(swigCPtr, UpgradeType.getCPtr(other)), false);
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
public bool Equals(UpgradeType obj) 
{
    if (obj == null) return false;
    return (obj.swigCPtr.Handle == this.swigCPtr.Handle);
}
 internal static HandleRef getCPtr(UpgradeType obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
 public bool opLessThan(UpgradeType other) {
   bool ret = bwapiPINVOKE.UpgradeType_opLessThan(swigCPtr, UpgradeType.getCPtr(other));
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Exemple #13
0
 public virtual bool canUpgrade(Unit unit, UpgradeType type) {
   bool ret = bwapiPINVOKE.Game_canUpgrade(swigCPtr, Unit.getCPtr(unit), UpgradeType.getCPtr(type));
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public UpgradeType upgradeType() {
   UpgradeType ret = new UpgradeType(bwapiPINVOKE.WeaponType_upgradeType(swigCPtr), true);
   return ret;
 }