summaryrefslogtreecommitdiff
path: root/include/apprentice.h
diff options
context:
space:
mode:
authorgolem galvanize <golemgalvanize@github.com>2018-10-17 20:03:31 -0400
committergolem galvanize <golemgalvanize@github.com>2018-10-17 20:03:31 -0400
commit2c6d634acdf7bd22fb7e5c4933ff2e13712d2ec3 (patch)
tree9d51a6c1c07da6946022fe5867e34300bd71493d /include/apprentice.h
parent65a0c48eec7d2184478841d232d1fb3c3350fa37 (diff)
parentf67bbbdaaa905833f1c2a315624128aafef9a4cb (diff)
Merge branch 'master' of https://github.com/pret/pokeemerald into decompile_party_menu
Diffstat (limited to 'include/apprentice.h')
-rw-r--r--include/apprentice.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/apprentice.h b/include/apprentice.h
new file mode 100644
index 000000000..ca0b04800
--- /dev/null
+++ b/include/apprentice.h
@@ -0,0 +1,24 @@
+#ifndef GUARD_APPRENTICE_H
+#define GUARD_APPRENTICE_H
+
+#define APPRENTICE_SPECIES_COUNT 10
+
+struct ApprenticeTrainer
+{
+ u8 name[6][PLAYER_NAME_LENGTH + 1]; // For all six languages.
+ u16 otId;
+ u8 facilityClass;
+ u16 species[APPRENTICE_SPECIES_COUNT];
+ u8 rest[14];
+};
+
+extern const struct ApprenticeTrainer gApprentices[];
+
+void CopyFriendsApprenticeChallengeText(u8 saveblockApprenticeId);
+void Apprentice_EnableBothScriptContexts(void);
+void ResetApprenticeStruct(struct Apprentice *apprentice);
+void ResetAllApprenticeData(void);
+void CallApprenticeFunction(void);
+const u8 *GetApprenticeNameInLanguage(u32 apprenticeId, s32 language);
+
+#endif // GUARD_APPRENTICE_H