예제 #1
0
 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;
 }
예제 #2
0
 public virtual TechType getTech() {
   TechType ret = new TechType(bwapiPINVOKE.Unit_getTech(swigCPtr), true);
   return ret;
 }
예제 #3
0
 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;
 }
예제 #4
0
 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;
 }
예제 #5
0
 public TechType getTechType() {
   TechType ret = new TechType(bwapiPINVOKE.UnitCommand_getTechType(swigCPtr), true);
   return ret;
 }
예제 #6
0
 public static TechType getTechType(string name) {
   TechType ret = new TechType(bwapiPINVOKE.getTechType(name), true);
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
예제 #7
0
 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;
 }
예제 #8
0
 public TechType requiredTech() {
   TechType ret = new TechType(bwapiPINVOKE.UnitType_requiredTech(swigCPtr), true);
   return ret;
 }
예제 #9
0
 public TechType cloakingTech() {
   TechType ret = new TechType(bwapiPINVOKE.UnitType_cloakingTech(swigCPtr), true);
   return ret;
 }
예제 #10
0
 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;
 }
예제 #11
0
 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;
 }
예제 #12
0
 public TechType(TechType other) : this(bwapiPINVOKE.new_TechType__SWIG_2(TechType.getCPtr(other)), true) {
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #13
0
public bool Equals(TechType obj) 
{
    if (obj == null) return false;
    return (obj.swigCPtr.Handle == this.swigCPtr.Handle);
}
예제 #14
0
 internal static HandleRef getCPtr(TechType obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
예제 #15
0
 public bool opLessThan(TechType other) {
   bool ret = bwapiPINVOKE.TechType_opLessThan(swigCPtr, TechType.getCPtr(other));
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
예제 #16
0
 public TechType getTech() {
   TechType ret = new TechType(bwapiPINVOKE.WeaponType_getTech(swigCPtr), true);
   return ret;
 }