예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 public virtual UpgradeType getUpgrade() {
   UpgradeType ret = new UpgradeType(bwapiPINVOKE.Unit_getUpgrade(swigCPtr), true);
   return ret;
 }
예제 #4
0
 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;
 }
예제 #5
0
 public UpgradeType getUpgradeType() {
   UpgradeType ret = new UpgradeType(bwapiPINVOKE.UnitCommand_getUpgradeType(swigCPtr), true);
   return ret;
 }
예제 #6
0
 public UpgradeType armorUpgrade() {
   UpgradeType ret = new UpgradeType(bwapiPINVOKE.UnitType_armorUpgrade(swigCPtr), true);
   return ret;
 }
예제 #7
0
 public static UpgradeType getUpgradeType(string name) {
   UpgradeType ret = new UpgradeType(bwapiPINVOKE.getUpgradeType(name), true);
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
예제 #8
0
 public UpgradeType(UpgradeType other) : this(bwapiPINVOKE.new_UpgradeType__SWIG_2(UpgradeType.getCPtr(other)), true) {
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #9
0
 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;
 }
예제 #10
0
public bool Equals(UpgradeType obj) 
{
    if (obj == null) return false;
    return (obj.swigCPtr.Handle == this.swigCPtr.Handle);
}
예제 #11
0
 internal static HandleRef getCPtr(UpgradeType obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
예제 #12
0
 public bool opLessThan(UpgradeType other) {
   bool ret = bwapiPINVOKE.UpgradeType_opLessThan(swigCPtr, UpgradeType.getCPtr(other));
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
예제 #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;
 }
예제 #14
0
 public UpgradeType upgradeType() {
   UpgradeType ret = new UpgradeType(bwapiPINVOKE.WeaponType_upgradeType(swigCPtr), true);
   return ret;
 }