summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnonymousRandomPerson <chenghanngan.us@gmail.com>2021-12-14 23:26:56 -0500
committerAnonymousRandomPerson <chenghanngan.us@gmail.com>2021-12-14 23:26:56 -0500
commitda8fcb2ac85554bb099dff69f1d0ec1226156afd (patch)
treec508aa56c680a67d88fe0458f14c66ddec372be3 /include
parentb458476078a75905b2cd081455ce18b51d571c79 (diff)
Decomped CanSee()
Diffstat (limited to 'include')
-rw-r--r--include/dungeon_entity.h8
-rw-r--r--include/dungeon_pokemon_attributes_1.h2
-rw-r--r--include/dungeon_visibility.h9
3 files changed, 15 insertions, 4 deletions
diff --git a/include/dungeon_entity.h b/include/dungeon_entity.h
index 29e3112..bf263ae 100644
--- a/include/dungeon_entity.h
+++ b/include/dungeon_entity.h
@@ -272,10 +272,10 @@ struct DungeonEntity
enum EntityType
{
- ENTITY_NONE = 0,
- ENTITY_POKEMON = 1,
- ENTITY_TRAP = 2,
- ENTITY_ITEM = 3
+ ENTITY_NONE,
+ ENTITY_POKEMON,
+ ENTITY_TRAP,
+ ENTITY_ITEM
};
enum MovementFlag
diff --git a/include/dungeon_pokemon_attributes_1.h b/include/dungeon_pokemon_attributes_1.h
index 0c8037b..ccf68e5 100644
--- a/include/dungeon_pokemon_attributes_1.h
+++ b/include/dungeon_pokemon_attributes_1.h
@@ -3,6 +3,8 @@
#include "dungeon_entity.h"
+// 0x71884
+bool8 CanSeeInvisible(struct DungeonEntity *pokemon);
// 0x718AC
bool8 HasTactic(struct DungeonEntity *pokemon, u8 tactic);
// 0x718D8
diff --git a/include/dungeon_visibility.h b/include/dungeon_visibility.h
new file mode 100644
index 0000000..f94926e
--- /dev/null
+++ b/include/dungeon_visibility.h
@@ -0,0 +1,9 @@
+#ifndef GUARD_DUNGEON_VISIBILITY_H
+#define GUARD_DUNGEON_VISIBILITY_H
+
+#include "dungeon_entity.h"
+
+// 0x45990
+bool8 CanSee(struct DungeonEntity *entity, struct DungeonEntity *targetEntity);
+
+#endif