-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37a9154
commit bef1b09
Showing
5 changed files
with
63 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* @file playercrafting.hpp | ||
* @brief Player crafting | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "player.hpp" | ||
#include "inventory.hpp" | ||
#include "crafting.hpp" | ||
#include <vector> | ||
|
||
class Player::Crafting | ||
{ | ||
private: | ||
static Inventory *playerInventory; | ||
static std::vector<CraftingRecipe> craftingRecipes; | ||
static u8 craftingSelect; | ||
|
||
public: | ||
static void init(void); | ||
static void draw(Font &font, Font &fontRu, Player *player); | ||
static void update(Player *player); // TODO the only reason this (and draw()) needs a player pointer is for _canCraft and other functions depending on Player::countItems (and probably other inventory-management functions made before Inventory class), which can be implemented with just the inventory | ||
|
||
static void setInventory(Inventory *inv); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters