1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 07:07:45 +00:00

cleanup old func def, add docs for new funcs

This commit is contained in:
NotAdam 2019-04-04 22:19:56 +11:00
parent 5c6b49cc0b
commit dbb81a9384

View file

@ -48,14 +48,15 @@ namespace Sapphire::Action
bool isComboAction() const; bool isComboAction() const;
/*! /*!
* @brief Checks whether the source chara has the required stats/debuffs/etc to cast an action. * @brief Checks if a chara has enough resources available to cast the action (tp/mp/etc)
* @param subtractCosts Whether we should subtract the costs (eg, mp/tp) from the player or to just check them * @return true if they have the required resources
* @return whether the requirements are met by the caster
*/ */
bool costCheck( bool subtractCosts = false );
bool hasResources(); bool hasResources();
/*!
* @brief Checks if a chara has enough resources available to cast the action and then consumes them (tp/mp/etc)
* @return true if they have the required resources
*/
bool consumeResources(); bool consumeResources();
/*! /*!