Decomped AvoidEnemies()

This commit is contained in:
AnonymousRandomPerson
2022-03-12 23:03:48 -05:00
parent 905723858c
commit e040eafca8
12 changed files with 642 additions and 834 deletions

View File

@@ -0,0 +1,8 @@
#ifndef GUARD_DUNGEON_AI_MOVEMENT_1_H
#define GUARD_DUNGEON_AI_MOVEMENT_1_H
#include "dungeon_entity.h"
bool8 AvoidEnemies(struct DungeonEntity *pokemon);
#endif

View File

@@ -74,7 +74,7 @@ struct DungeonGlobalData
u8 fill104C0[0x104C4 - 0x104C0];
/* 0x104C4 */ struct MapRoom roomData[MAX_ROOM_COUNT];
u8 fill10764[0x10844 - 0x10764];
/* 0x10844 */ u16 numRoomExits[MAX_ROOM_COUNT];
/* 0x10844 */ s16 numRoomExits[MAX_ROOM_COUNT];
u8 fill10874[0x10884 - 0x10874];
/* 0x10884 */ struct Position roomExits[MAX_ROOM_COUNT][32]; // Arrays of room exits for each room.
u8 fill11444[0x1356C - 0x11484];

View File

@@ -9,6 +9,7 @@ extern const struct Position gAdjacentTileOffsets[NUM_DIRECTIONS];
bool8 EntityExists(struct DungeonEntity *pokemon);
u32 GetEntityType(struct DungeonEntity *entity);
u8 GetEntityRoomIndex(struct DungeonEntity *entity);
struct DungeonEntityData *GetTrapData(struct DungeonEntity *entity);
struct ItemSlot *GetItemData(struct DungeonEntity *entity);
struct MapTile *GetMapTileForDungeonEntity_2(struct DungeonEntity *entity);

View File

@@ -4,5 +4,6 @@
#include "position.h"
s32 CalculateFacingDir(struct Position *originPos, struct Position *targetPos);
s32 GetDistance(struct Position *pos1, struct Position *pos2);
#endif