summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormetaphysicsIO <103212704+metaphysicsIO@users.noreply.github.com>2023-06-09 23:42:54 -0500
committermetaphysicsIO <103212704+metaphysicsIO@users.noreply.github.com>2023-06-09 23:42:54 -0500
commit4daa1d1df350be5b8621c374ec23824faf0f8700 (patch)
treecd6d95cfd43993d99a3d944ac5a3a00ecd0e39cc
parenta56eb8537cbaa0a1a5893386bf5b33a6aca9b603 (diff)
downloadPSE-4daa1d1df350be5b8621c374ec23824faf0f8700.tar.gz
displayitems (unfinished)
-rw-r--r--SavEdit.h1
-rw-r--r--UserOptions.cpp25
2 files changed, 25 insertions, 1 deletions
diff --git a/SavEdit.h b/SavEdit.h
index 2275f14..84ef44a 100644
--- a/SavEdit.h
+++ b/SavEdit.h
@@ -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;
+}