summaryrefslogtreecommitdiff
path: root/include/objects.h
diff options
context:
space:
mode:
authorTyler McGavran <tyler.taggerung@gmail.com>2022-12-28 22:19:11 -0500
committerGitHub <noreply@github.com>2022-12-28 20:19:11 -0700
commitc705bc4a6a207694e2d14dd641e530980b768d54 (patch)
tree023674c490b48a90eda32f6023c73df824158a61 /include/objects.h
parent94b3a6f07b416b14021edc731a387e61dcc47f9b (diff)
Lots of matches related to the object list (#284)
Identified a couple more lists of object list indices, added some comments indicating what they're used for. Those comments are most likely non-exhaustive so there's still some investigation to be done there. Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
Diffstat (limited to 'include/objects.h')
-rw-r--r--include/objects.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/include/objects.h b/include/objects.h
index 83ffe9148..4f2f22a49 100644
--- a/include/objects.h
+++ b/include/objects.h
@@ -96,4 +96,57 @@ extern s32 D_80183F28[];
extern s32 D_8018BFA8[];
extern s32 D_8018C030[];
+#define D_8018C1B0_SIZE 0x80
+#define NUM_MOLES 0x1F
+#define NUM_SNOWFLAKES 0x32
+/**
+ * List of object list indices used for:
+ * Moles in Moo Moo Farm
+ * Snow flakes in Frappe Snowland
+ * Segments of the fire breath from the statues in Bowser's Castle
+ * Potentially other things
+**/
+extern s32 D_8018C1B0[];
+// Next free spot in D_8018C1B0? Wraps back around to 0 if it gets bigger than D_8018C1B0_SIZE
+extern s32 D_80183E38;
+// Used for cycling through snowflakes in func_80078790
+extern s16 D_8018D174;
+
+#define D_8018C3F0_SIZE 0x80
+/**
+ * List of object list indices used for:
+ * Bats in Banshee's Boardwalk (but only 1 player mode?)
+**/
+extern s32 D_8018C3F0[];
+// Next free spot in D_8018C3F0? Wraps back around to 0 if it gets bigger than D_8018C3F0_SIZE
+extern s32 D_80183E4C;
+
+#define D_8018C630_SIZE 0x80
+extern s32 D_8018C630[];
+// Next free spot in D_8018C630?
+extern s32 D_80183E5C;
+extern s16 D_80165730;
+// Tracking a count of some object type, don't know what object type yet
+extern s16 D_80165738;
+
+#define D_8018C870_SIZE 0x40
+/**
+ * List of object list indices. Used both for the fires in the DK Jungle cave
+ * and, seemingly for the trail that shells leave behind them.
+ * I think they're using the same texture, which would explain the dual use
+**/
+extern s32 D_8018C870[];
+// Next free spot in D_8018C870? Wraps back around to 0 if it gets bigger than D_8018C870_SIZE
+extern s32 D_80183E6C;
+
+// Maximum number of leaves that can be falling?
+#define D_8018C970_SIZE 0x40
+// Number of leaves to spawn each bonk?
+#define D_8018C970_SPAWN_SIZE 0x14
+// Seemingly a list of object list indices used for the leaves that sometimes fall
+// trees when you bonk into them
+extern s32 D_8018C970[];
+// Next free spot in D_8018C970? Wraps back around to 0 if it gets bigger than D_8018C970_SIZE
+extern s32 D_80183E7C;
+
#endif