Beispiel #1
0
 private void OnTErainBtnClick(string text)
 {
     if (camp == null)
     {
         camp = pBDG_Game.GetICamp(text);
     }
     if (camp != null)
     {
         //添加命令
         camp.Train();
     }
 }
Beispiel #2
0
    private void OnTrainClick()
    {
        int energy = mCamp.energyCostTrain;

        if (GameFacade.Instance.TakeEnergy(energy))
        {
            mCamp.Train();
        }
        else
        {
            mFacade.ShowMsg("训练士兵需要能量: " + energy + "能量不足,请稍后进行升级");
        }
    }
    private void OnTrainClick()
    {
        int energy = mCamp.energyCostTrain;

        if (GameFacade.Insance.TakeEnergy(energy))
        {
            mCamp.Train();
        }
        else
        {
            GameFacade.Insance.ShowMsg("训练士兵需要能量:" + energy + " 能量不足,无法训练新的士兵");
        }
    }
Beispiel #4
0
    private void onTrainClick()
    {
        int energy = mCamp.EnergyCostTrain;

        if (GameFacade.Instance.takeEnergy(energy))
        {
            mCamp.Train();
        }
        else
        {
            GameFacade.Instance.showMsg("energy is not enough to train");
        }
    }
    private void OnTrainClick()
    {
        int energy = mCamp.energyCostTrain;

        if (mFacade.TakeEnergy(energy))
        {
            mCamp.Train();
        }
        else
        {
            mFacade.ShowMessage("训练士兵需要能量:" + energy + "能量不足,无法训练士兵。");
        }
    }
Beispiel #6
0
    private void OnTrainClick()
    {
        int energyCost = mCurrentCamp.energyCostTrianCharacter;

        //判断能力是否足够     //消耗能量 TODO
        if (GameFacade.Instance.TakeEnergy(energyCost))
        {
            mCurrentCamp.Train();
        }
        else
        {
            GameFacade.Instance.ShowMsg("能量不足,无法训练新的士兵!!!");
        }
    }
Beispiel #7
0
    // 训练按钮点击事件
    public void OnTrainClick()
    {
        // 判断能量是否足够
        int energy = mCamp.EnergyCostTrain;

        if (mFacade.TakeEnergy(energy))
        {
            mCamp.Train();
        }
        else
        {
            mFacade.ShowMsg("能量不足,训练士兵所需能量" + energy);
        }
    }
Beispiel #8
0
    //点击训练
    private void OnTrainClick()
    {
        //消耗能量,判断能量是否足够
        int energy = mCamp.EnergyCostTrain;

        if (mFacade.TakeEnergy(energy))
        {
            mCamp.Train();
        }
        else
        {
            mFacade.ShowMessage("训练需要能量:" + energy + "点,能量不足,无法训练新的士兵!");
        }
    }
Beispiel #9
0
    private void OnTrainBtnClick()
    {
        //判断能量是否足够
        int energy = mCamp.energyCostTrain;

        if (mFacade.TakeEnergy(energy))
        {
            mCamp.Train();
        }
        else
        {
            mFacade.ShowMsg("训练士兵需要能量:" + energy + "能量不足,无法训练新的士兵");
        }
    }
Beispiel #10
0
    private void OnTrainClick()
    {
        //判断能量是否足够
        //TODO
        int energy = m_Camp.EnergyCostTrain;

        if (GameFacade.Instance.TakeEnergy(energy))
        {
            m_Camp.Train();
        }
        else
        {
            GameFacade.Instance.ShowMsg("训练士兵需要能量:" + energy + "能量不足,无法训练新的士兵");
        }
    }
    // 训练
    private void OnTrainBtnClick()
    {
        int Cost = m_Camp.GetTrainCost();

        if (CheckRule(Cost > 0, "无法训练") == false)
        {
            return;
        }

        // 是否足够
        string Msg = string.Format("AP不足无法训练,需要{0}点AP", Cost);

        if (CheckRule(m_PBDGame.CostAP(Cost), Msg) == false)
        {
            return;
        }

        // 产生训练命令
        m_Camp.Train();
        ShowInfo(m_Camp);
    }
    // 訓練
    private void OnTrainBtnClick()
    {
        int Cost = m_Camp.GetTrainCost();

        if (CheckRule(Cost > 0, "無法訓練") == false)
        {
            return;
        }

        // 是否足夠
        string Msg = string.Format("AP不足無法訓練,需要{0}點AP", Cost);

        if (CheckRule(m_PBDGame.CostAP(Cost), Msg) == false)
        {
            return;
        }

        // 產生訓練命令
        m_Camp.Train();
        ShowInfo(m_Camp);
    }