public virtual bool useTech(TechType tech, Unit target) { bool ret = bwapiPINVOKE.Unit_useTech__SWIG_2(swigCPtr, TechType.getCPtr(tech), Unit.getCPtr(target)); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public virtual TechType getTech() { TechType ret = new TechType(bwapiPINVOKE.Unit_getTech(swigCPtr), true); return ret; }
public virtual bool research(TechType tech) { bool ret = bwapiPINVOKE.Unit_research(swigCPtr, TechType.getCPtr(tech)); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public static UnitCommand useTech(Unit unit, TechType tech, Unit target) { UnitCommand ret = new UnitCommand(bwapiPINVOKE.UnitCommand_useTech__SWIG_2(Unit.getCPtr(unit), TechType.getCPtr(tech), Unit.getCPtr(target)), true); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public TechType getTechType() { TechType ret = new TechType(bwapiPINVOKE.UnitCommand_getTechType(swigCPtr), true); return ret; }
public static TechType getTechType(string name) { TechType ret = new TechType(bwapiPINVOKE.getTechType(name), true); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public static UnitCommand research(Unit unit, TechType tech) { UnitCommand ret = new UnitCommand(bwapiPINVOKE.UnitCommand_research(Unit.getCPtr(unit), TechType.getCPtr(tech)), true); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public TechType requiredTech() { TechType ret = new TechType(bwapiPINVOKE.UnitType_requiredTech(swigCPtr), true); return ret; }
public TechType cloakingTech() { TechType ret = new TechType(bwapiPINVOKE.UnitType_cloakingTech(swigCPtr), true); return ret; }
public TechType opAssign(TechType other) { TechType ret = new TechType(bwapiPINVOKE.TechType_opAssign(swigCPtr, TechType.getCPtr(other)), false); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public virtual bool canResearch(Unit unit, TechType type) { bool ret = bwapiPINVOKE.Game_canResearch(swigCPtr, Unit.getCPtr(unit), TechType.getCPtr(type)); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public TechType(TechType other) : this(bwapiPINVOKE.new_TechType__SWIG_2(TechType.getCPtr(other)), true) { if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); }
public bool Equals(TechType obj) { if (obj == null) return false; return (obj.swigCPtr.Handle == this.swigCPtr.Handle); }
internal static HandleRef getCPtr(TechType obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
public bool opLessThan(TechType other) { bool ret = bwapiPINVOKE.TechType_opLessThan(swigCPtr, TechType.getCPtr(other)); if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public TechType getTech() { TechType ret = new TechType(bwapiPINVOKE.WeaponType_getTech(swigCPtr), true); return ret; }