public static WeaponType getWeaponType(string name) { WeaponType ret = new WeaponType(bwapiPINVOKE.getWeaponType(name), true); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public WeaponType getWeapon() { WeaponType ret = new WeaponType(bwapiPINVOKE.TechType_getWeapon(swigCPtr), true); return ret; }
public WeaponType airWeapon() { WeaponType ret = new WeaponType(bwapiPINVOKE.UnitType_airWeapon(swigCPtr), true); return ret; }
public WeaponType opAssign(WeaponType other) { WeaponType ret = new WeaponType(bwapiPINVOKE.WeaponType_opAssign(swigCPtr, WeaponType.getCPtr(other)), false); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public WeaponType(WeaponType other) : this(bwapiPINVOKE.new_WeaponType__SWIG_2(WeaponType.getCPtr(other)), true) { if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); }
public bool Equals(WeaponType obj) { if (obj == null) return false; return (obj.swigCPtr.Handle == this.swigCPtr.Handle); }
internal static HandleRef getCPtr(WeaponType obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
public bool opLessThan(WeaponType other) { bool ret = bwapiPINVOKE.WeaponType_opLessThan(swigCPtr, WeaponType.getCPtr(other)); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }