Skip to content

Commit

Permalink
Player crafting docs
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmMoltony committed Jan 28, 2024
1 parent 711a382 commit 607e542
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions include/playercrafting.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,50 @@
#include "crafting.hpp"
#include <vector>

/**
* @brief Player crafting class
*/
class Player::Crafting
{
private:
/**
* @brief Pointer to player's inventory
*/
static Inventory *playerInventory;

/**
* @brief List of crafting recipes
*/
static std::vector<CraftingRecipe> craftingRecipes;

/**
* @brief Selected crafting recipe
*/
static u8 craftingSelect;

/**
* @brief Check if the given recipe can be crafted or not
*/
static bool canCraft(CraftingRecipe recipe);

public:
/**
* @brief Initialize crafting
*/
static void init(void);

/**
* @brief Draw crafting UI
*/
static void draw(Font &font, Font &fontRu);

/**
* @brief Update crafting
*/
static void update(void);

/**
* @brief Set inventory to use
*/
static void setInventory(Inventory *inv);
};

0 comments on commit 607e542

Please sign in to comment.