public DamageType damageType() {
   DamageType ret = new DamageType(bwapiPINVOKE.WeaponType_damageType(swigCPtr), true);
   return ret;
 }
Example #2
0
 public static DamageType getDamageType(string name) {
   DamageType ret = new DamageType(bwapiPINVOKE.getDamageType(name), true);
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public DamageType opAssign(DamageType other) {
   DamageType ret = new DamageType(bwapiPINVOKE.DamageType_opAssign(swigCPtr, DamageType.getCPtr(other)), false);
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public DamageType(DamageType other) : this(bwapiPINVOKE.new_DamageType__SWIG_2(DamageType.getCPtr(other)), true) {
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
 }
public bool Equals(DamageType obj) 
{
    if (obj == null) return false;
    return (obj.swigCPtr.Handle == this.swigCPtr.Handle);
}
 internal static HandleRef getCPtr(DamageType obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
 public bool opLessThan(DamageType other) {
   bool ret = bwapiPINVOKE.DamageType_opLessThan(swigCPtr, DamageType.getCPtr(other));
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }