Exemplo n.º 1
0
    // 訓練Soldier
    public override void Train()
    {
        // 產生一個訓練命令
        TrainSoldierCommand NewCommand = new TrainSoldierCommand(m_emSoldier, m_emWeapon, m_Lv, m_Position);

        AddTrainCommand(NewCommand);
    }
Exemplo n.º 2
0
    public override void Train()
    {
        // 添加训练命令
        TrainSoldierCommand cmd = new TrainSoldierCommand(mSoldierType, mWeaponType, mPosition, mLv);

        mCommands.Add(cmd);
    }
    public override bool Train()
    {
        int energy = EnergyCostSoldierTrain;

        if (energy < 0)
        {
            GameFacade.Instance.ShowTipMessage("训练错误!");
            return(false);
        }
        if (GameFacade.Instance.UseEnergy(energy))
        {
            TrainSoldierCommand cmd = new TrainSoldierCommand(SoldierType, WeaponType, Position, LV);
            cmdList.AddLast(cmd);
            return(true);
        }
        else
        {
            GameFacade.Instance.ShowTipMessage("训练士兵能量不足,需要能量:" + energy);
        }
        return(false);
    }
Exemplo n.º 4
0
	// 訓練Soldier
	public override void Train()
	{
		// 產生一個訓練命令
		TrainSoldierCommand NewCommand = new TrainSoldierCommand( m_emSoldier, m_emWeapon, m_Lv, m_Position);  
		AddTrainCommand( NewCommand );
	}
Exemplo n.º 5
0
    public override void Train()
    {
        TrainSoldierCommand cmd = new TrainSoldierCommand(m_SoldierType, m_WeaponType, m_Position, m_Lv);

        m_Commands.Add(cmd);
    }