diff options
author | metaphysicsIO <103212704+metaphysicsIO@users.noreply.github.com> | 2023-06-09 23:42:54 -0500 |
---|---|---|
committer | metaphysicsIO <103212704+metaphysicsIO@users.noreply.github.com> | 2023-06-09 23:42:54 -0500 |
commit | 4daa1d1df350be5b8621c374ec23824faf0f8700 (patch) | |
tree | cd6d95cfd43993d99a3d944ac5a3a00ecd0e39cc | |
parent | a56eb8537cbaa0a1a5893386bf5b33a6aca9b603 (diff) | |
download | PSE-4daa1d1df350be5b8621c374ec23824faf0f8700.tar.gz |
displayitems (unfinished)
-rw-r--r-- | SavEdit.h | 1 | ||||
-rw-r--r-- | UserOptions.cpp | 25 |
2 files changed, 25 insertions, 1 deletions
@@ -27,6 +27,7 @@ class SavEdit bool select(); void clear(); void debug(); + void displayItems(); private: std::string filename; diff --git a/UserOptions.cpp b/UserOptions.cpp index 0dcc494..c1e4ba5 100644 --- a/UserOptions.cpp +++ b/UserOptions.cpp @@ -204,7 +204,8 @@ void SavEdit::debug() */ // CURRENT TASK: - // - Finding out all 255 items + // [x] Finding out all 255 items + // [ ] How many item slots are available? int startingval = 0xC0; int inc = 4; @@ -222,3 +223,25 @@ void SavEdit::debug() std::cout << std::hex << s+3 << std::endl; } + +void SavEdit::displayItems() +{ + /* + * Displays items and quantities held within + * pocket. + */ + + // TODO: Create vector items list + // TODO: Find how many slots are in the pocket + // TODO: Item quantity is displayed as hex, but represents deci. + // How do I solve this issue? This would also solve the cash + // issue. + + // FORMAT: + // [ITEM #0] [NAME] x[VAL] | [ITEM #1] [NAME] x[VAL] + // + // TODO: Maybe a selection menu, list of potential items? + + + std::cout << "TODO: Make displayItems();" << std::endl; +} |