summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-02-19 15:43:59 -0500
committerPikalaxALT <pikalaxalt@gmail.com>2020-02-19 15:43:59 -0500
commit0125c1440e52404d53b4d91451cf03b625ba4634 (patch)
tree53b3c44ccd7b24fee79548efed648fb7c95f6488 /include
parent4280723f0ef24ff218cb81fd4ce8eb7abf063d34 (diff)
trainer_see through CheckPathBetweenTrainerAndPlayer
Diffstat (limited to 'include')
-rw-r--r--include/event_object_movement.h5
-rw-r--r--include/global.fieldmap.h6
-rw-r--r--include/quest_log.h1
3 files changed, 8 insertions, 4 deletions
diff --git a/include/event_object_movement.h b/include/event_object_movement.h
index 650f137d9..b5acd4bbb 100644
--- a/include/event_object_movement.h
+++ b/include/event_object_movement.h
@@ -76,7 +76,7 @@ u8 GetStepInPlaceDelay4AnimId(u32);
u8 GetStepInPlaceDelay8AnimId(u32);
u8 GetStepInPlaceDelay16AnimId(u32);
u8 GetStepInPlaceDelay32AnimId(u32);
-u8 npc_block_way(struct ObjectEvent *, s16, s16, u32);
+u8 GetCollisionAtCoords(struct ObjectEvent *, s16, s16, u32);
void MoveCoords(u8, s16 *, s16 *);
bool8 ObjectEventIsSpecialAnimActive(struct ObjectEvent *);
u8 ObjectEventClearHeldMovementIfFinished(struct ObjectEvent *);
@@ -98,6 +98,9 @@ u8 GetTrainerFacingDirectionMovementType(u8 direction);
void CameraObjectSetFollowedObjectId(u8 spriteId);
void UnfreezeObjectEvents(void);
void TurnObjectEvent(u8, u8);
+const u8 *GetObjectEventScriptPointerByObjectEventId(u8 objectEventId);
+u8 sub_805DF30(void);
+u8 GetCollisionFlagsAtCoords(struct ObjectEvent * objectEvent, s16 x, s16 y, u8 direction);
// Exported data declarations
diff --git a/include/global.fieldmap.h b/include/global.fieldmap.h
index e0053fe88..c599b68ab 100644
--- a/include/global.fieldmap.h
+++ b/include/global.fieldmap.h
@@ -205,9 +205,9 @@ struct ObjectEvent
/*0x0A*/ u8 mapGroup;
/*0x0B*/ u8 mapobj_unk_0B_0:4;
u8 elevation:4;
- /*0x0C*/ struct Coords16 coords1;
- /*0x10*/ struct Coords16 coords2;
- /*0x14*/ struct Coords16 coords3;
+ /*0x0C*/ struct Coords16 initialCoords;
+ /*0x10*/ struct Coords16 currentCoords;
+ /*0x14*/ struct Coords16 previousCoords;
/*0x18*/ u8 facingDirection:4; //current direction?
/*0x18*/ u8 placeholder18:4;
/*0x19*/ union ObjectEventRange range;
diff --git a/include/quest_log.h b/include/quest_log.h
index eddd4c02a..25d0d5871 100644
--- a/include/quest_log.h
+++ b/include/quest_log.h
@@ -49,5 +49,6 @@ void *QuestLogGetFlagOrVarPtr(bool8 isFlag, u16 idx);
void QuestLogSetFlagOrVar(bool8 isFlag, u16 idx, u16 value);
void sub_8110840(void *oldSave);
void sub_8112F18(u8 windowId);
+bool8 sub_8111C2C(void);
#endif //GUARD_QUEST_LOG_H