invertika_game.Game.Character.useSpecial C# (CSharp) Method

useSpecial() public method

public useSpecial ( int id ) : void
id int
return void
        void useSpecial(int id)
        {
            ////check if the character may use this special in general
            //std::map<int, Special*>::iterator i = mSpecials.find(id);
            //if (i == mSpecials.end())
            //{
            //    LOG_INFO("Character uses special "<<id<<" without autorisation.");
            //    return;
            //}

            ////check if the special is currently recharged
            //Special *special = i.second;
            //if (special.currentMana < special.neededMana)
            //{
            //    LOG_INFO("Character uses special "<<id<<" which is not recharged. ("
            //             <<special.currentMana<<"/"<<special.neededMana<<")");
            //    return;
            //}

            ////tell script engine to cast the spell
            //special.currentMana = 0;
            //Script::performSpecialAction(id, this);
            //mSpecialUpdateNeeded = true;
            return;
        }