summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2020-01-20 20:21:58 -0500
committerPikalaxALT <PikalaxALT@gmail.com>2020-01-20 20:21:58 -0500
commit5e0a845fc491590a7bf7d9e9cb99cf1f57733665 (patch)
tree21d624888353f813e7370fc32319af923ee5825f /include
parent1fd20be8e10d9b810095186903acf9a405ce97c4 (diff)
finish union_room.s code decomp
Diffstat (limited to 'include')
-rw-r--r--include/event_object_lock.h1
-rw-r--r--include/global.fieldmap.h6
-rw-r--r--include/link_rfu.h2
-rw-r--r--include/union_room.h2
4 files changed, 7 insertions, 4 deletions
diff --git a/include/event_object_lock.h b/include/event_object_lock.h
index c5c32857b..5c65585b5 100644
--- a/include/event_object_lock.h
+++ b/include/event_object_lock.h
@@ -11,5 +11,6 @@ void sub_8098630(void);
bool8 sub_8098734(void);
void sub_80696C0(void);
bool8 walkrun_is_standing_still(void);
+void sub_80696F0(void);
#endif // GUARD_EVENT_OBJECT_LOCK_H
diff --git a/include/global.fieldmap.h b/include/global.fieldmap.h
index 4402d5042..01cd992ec 100644
--- a/include/global.fieldmap.h
+++ b/include/global.fieldmap.h
@@ -275,9 +275,9 @@ enum
struct PlayerAvatar /* 0x202E858 */
{
/*0x00*/ u8 flags;
- /*0x01*/ u8 bike;
- /*0x02*/ u8 running2;
- /*0x03*/ u8 running1;
+ /*0x01*/ u8 unk1; // used to be bike, but it's not that in Emerald and probably isn't here either. maybe transition flags?
+ /*0x02*/ u8 runningState; // this is a static running state. 00 is not moving, 01 is turn direction, 02 is moving.
+ /*0x03*/ u8 tileTransitionState; // this is a transition running state: 00 is not moving, 01 is transition between tiles, 02 means you are on the frame in which you have centered on a tile but are about to keep moving, even if changing directions. 2 is also used for a ledge hop, since you are transitioning.
/*0x04*/ u8 spriteId;
/*0x05*/ u8 objectEventId;
/*0x06*/ u8 unk6;
diff --git a/include/link_rfu.h b/include/link_rfu.h
index 3869ba000..874f62511 100644
--- a/include/link_rfu.h
+++ b/include/link_rfu.h
@@ -323,6 +323,8 @@ void sub_80FBC00(void);
void sub_80FBD6C(u32 a0);
void sub_80FC114(const u8 *name, struct GFtgtGname *structPtr, u8 a2);
bool32 sub_80FD338(u16 id, u8 *name);
+bool8 sub_80FCC3C(struct GFtgtGname *gname, u8 *uname, u8 idx);
+bool8 sub_80FCCF4(struct GFtgtGname *gname, u8 *uname, u8 idx);
#include "mevent_server.h"
extern const struct mevent_server_cmd gMEventSrvScript_OtherTrainerCanceled[];
diff --git a/include/union_room.h b/include/union_room.h
index fa3ead8dc..fcd970f7d 100644
--- a/include/union_room.h
+++ b/include/union_room.h
@@ -118,7 +118,7 @@ struct UnkStruct_URoom
/* 0x049 */ u8 field_49;
/* 0x04A */ u8 field_4A;
/* 0x04C */ u16 field_4C[6];
- /* 0x058 */ u8 field_58[0x84 - 0x58];
+ /* 0x058 */ u8 field_58[4][11];
/* 0x084 */ u16 field_98;
/* 0x086 */ u16 field_9A[3];
/* 0x08C */ struct UnkStruct_8019BA8 field_A0[8];