Documentation
This commit is contained in:
parent
f06227f02e
commit
79d575da10
1 changed files with 20 additions and 0 deletions
|
|
@ -55,8 +55,22 @@ namespace character {
|
|||
|
||||
static void from_json(const json &j, container &billy);
|
||||
|
||||
/*!
|
||||
* \brief It inserts the object inside the sheet.
|
||||
*
|
||||
* This method changes values inside the sheet according to the book's rules.
|
||||
* \param sheet sheet to insert object into
|
||||
* \param objType the object to insert
|
||||
* \return true: object inserted, false otherwise
|
||||
*/
|
||||
[[nodiscard]] bool insert_object(CharacterSheet &sheet, const billyEnums objType) noexcept;
|
||||
|
||||
/*!
|
||||
* \brief
|
||||
* \param sheet sheet to erase object from
|
||||
* \param objToErase the object to erase
|
||||
* \return true: object erased, false otherwise
|
||||
*/
|
||||
[[nodiscard]] bool erase_object(CharacterSheet &sheet, const billyEnums objToErase) noexcept;
|
||||
|
||||
[[nodiscard]] static bool is_full(const CharacterSheet &sheet) noexcept;
|
||||
|
|
@ -72,6 +86,12 @@ namespace character {
|
|||
|
||||
std::minus<std::uint32_t> minus;
|
||||
|
||||
/*!
|
||||
* \brief
|
||||
* \param arg object used to change values
|
||||
* \param sheet sheet to change
|
||||
* \param operation Operation to apply to change values
|
||||
*/
|
||||
static void change_carac(const billyObjects &arg,
|
||||
CharacterSheet &sheet,
|
||||
const std::function<uint32_t(uint32_t, uint32_t)> &operation) noexcept;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue