예제 #1
0
        public override bool isResearchAvailable(TechType tech)
        {
            bool ret = bwapiclientPINVOKE.PlayerImpl_isResearchAvailable(swigCPtr, TechType.getCPtr(tech));

            if (bwapiclientPINVOKE.SWIGPendingException.Pending)
            {
                throw bwapiclientPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #2
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);
        }
예제 #3
0
        public override bool useTech(TechType tech, Unit target)
        {
            bool ret = bwapiclientPINVOKE.UnitImpl_useTech__SWIG_2(swigCPtr, TechType.getCPtr(tech), Unit.getCPtr(target));

            if (bwapiclientPINVOKE.SWIGPendingException.Pending)
            {
                throw bwapiclientPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #4
0
        public override bool research(TechType tech)
        {
            bool ret = bwapiclientPINVOKE.UnitImpl_research(swigCPtr, TechType.getCPtr(tech));

            if (bwapiclientPINVOKE.SWIGPendingException.Pending)
            {
                throw bwapiclientPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #5
0
        public virtual bool useTech(TechType tech, Position target)
        {
            bool ret = bwapiPINVOKE.Unit_useTech__SWIG_1(swigCPtr, TechType.getCPtr(tech), Position.getCPtr(target));

            if (bwapiPINVOKE.SWIGPendingException.Pending)
            {
                throw bwapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #6
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);
        }
예제 #7
0
        public virtual bool isResearchAvailable(TechType tech)
        {
            bool ret = bwapiPINVOKE.Player_isResearchAvailable(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 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);
        }