diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2021-12-19 16:38:51 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-19 16:38:51 -0600 |
commit | 8e1c66d8bd01807285b05d8333f36cd2d70e062c (patch) | |
tree | bb1bf94d56b770eca66780948ff9e05401967ed1 /src/dungeon_util.c | |
parent | 087405b9d975b447ef7b17afd1e73e449cc7881b (diff) | |
parent | 0369264407563b64d60c885f8bf79322b6f663c8 (diff) |
Merge pull request #85 from AnonymousRandomPerson/master
More AI decomp
Diffstat (limited to 'src/dungeon_util.c')
-rw-r--r-- | src/dungeon_util.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/dungeon_util.c b/src/dungeon_util.c index 50b3e08..3594274 100644 --- a/src/dungeon_util.c +++ b/src/dungeon_util.c @@ -1,7 +1,8 @@ #include "global.h" #include "dungeon_util.h" -extern struct MapTile* GetMapTileAtPosition(s16, s16); +#include "dungeon_map_access.h" + extern struct MapTile* GetMapEntity(s16, s16); bool8 EntityExists(struct DungeonEntity *entity) @@ -23,32 +24,32 @@ u8 GetEntityRoomIndex(struct DungeonEntity *entity) return entity->roomIndex; } -struct DungeonEntityData *GetTrapData(struct DungeonEntity *entity) +struct DungeonEntityData* GetTrapData(struct DungeonEntity *entity) { return entity->entityData; } -struct ItemSlot *GetItemData(struct DungeonEntity *entity) +struct ItemSlot* GetItemData(struct DungeonEntity *entity) { return (struct ItemSlot *)entity->entityData; } -struct DungeonEntityData *sub_804510C(struct DungeonEntity *entity) +struct DungeonEntityData* sub_804510C(struct DungeonEntity *entity) { return entity->entityData; } -struct DungeonEntityData *sub_8045110(struct DungeonEntity *entity) +struct DungeonEntityData* sub_8045110(struct DungeonEntity *entity) { return entity->entityData; } -struct MapTile *sub_8045114(struct DungeonEntity *entity) +struct MapTile* GetMapTileForDungeonEntity(struct DungeonEntity *entity) { return GetMapTileAtPosition(entity->posWorld.x, entity->posWorld.y); } -struct MapTile *sub_8045128(struct DungeonEntity *entity) +struct MapTile* GetMapEntityForDungeonEntity(struct DungeonEntity *entity) { return GetMapEntity(entity->posWorld.x, entity->posWorld.y); } |