summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/constants/seal_constants.h87
-rw-r--r--include/script_buffers.h15
-rw-r--r--include/seal.h22
-rw-r--r--include/unk_020139D8.h12
4 files changed, 112 insertions, 24 deletions
diff --git a/include/constants/seal_constants.h b/include/constants/seal_constants.h
new file mode 100644
index 00000000..c246195b
--- /dev/null
+++ b/include/constants/seal_constants.h
@@ -0,0 +1,87 @@
+#ifndef POKEDIAMOND_CONSTANTS_SEAL_CONSTANTS_H
+#define POKEDIAMOND_CONSTANTS_SEAL_CONSTANTS_H
+
+// The different kinds of seals you can have
+#define SEAL_NONE 0
+#define SEAL_HEART_A 1
+#define SEAL_HEART_B 2
+#define SEAL_HEART_C 3
+#define SEAL_HEART_D 4
+#define SEAL_HEART_E 5
+#define SEAL_HEART_F 6
+#define SEAL_STAR_A 7
+#define SEAL_STAR_B 8
+#define SEAL_STAR_C 9
+#define SEAL_STAR_D 10
+#define SEAL_STAR_E 11
+#define SEAL_STAR_F 12
+#define SEAL_LINE_A 13
+#define SEAL_LINE_B 14
+#define SEAL_LINE_C 15
+#define SEAL_SMOKE_A 16
+#define SEAL_SMOKE_B 17
+#define SEAL_SMOKE_C 18
+#define SEAL_SMOKE_D 19
+#define SEAL_ELE_A 20
+#define SEAL_ELE_B 21
+#define SEAL_ELE_C 22
+#define SEAL_ELE_D 23
+#define SEAL_FOAMY_A 24
+#define SEAL_FOAMY_B 25
+#define SEAL_FOAMY_C 26
+#define SEAL_FOAMY_D 27
+#define SEAL_FIRE_A 28
+#define SEAL_FIRE_B 29
+#define SEAL_FIRE_C 30
+#define SEAL_FIRE_D 31
+#define SEAL_PARTY_A 32
+#define SEAL_PARTY_B 33
+#define SEAL_PARTY_C 34
+#define SEAL_PARTY_D 35
+#define SEAL_FLORA_A 36
+#define SEAL_FLORA_B 37
+#define SEAL_FLORA_C 38
+#define SEAL_FLORA_D 39
+#define SEAL_FLORA_E 40
+#define SEAL_FLORA_F 41
+#define SEAL_SONG_A 42
+#define SEAL_SONG_B 43
+#define SEAL_SONG_C 44
+#define SEAL_SONG_D 45
+#define SEAL_SONG_E 46
+#define SEAL_SONG_F 47
+#define SEAL_SONG_G 48
+#define SEAL_A 49
+#define SEAL_B 50
+#define SEAL_C 51
+#define SEAL_D 52
+#define SEAL_E 53
+#define SEAL_F 54
+#define SEAL_G 55
+#define SEAL_H 56
+#define SEAL_I 57
+#define SEAL_J 58
+#define SEAL_K 59
+#define SEAL_L 60
+#define SEAL_M 61
+#define SEAL_N 62
+#define SEAL_O 63
+#define SEAL_P 64
+#define SEAL_Q 65
+#define SEAL_R 66
+#define SEAL_S 67
+#define SEAL_T 68
+#define SEAL_U 69
+#define SEAL_V 70
+#define SEAL_W 71
+#define SEAL_X 72
+#define SEAL_Y 73
+#define SEAL_Z 74
+#define SEAL_SHOCK 75
+#define SEAL_MYSTERY 76
+#define SEAL_LINE_D 77
+#define SEAL_LIQUID 78
+#define SEAL_BURST 79
+#define SEAL_TWINKLE 80
+
+#endif //POKEDIAMOND_CONSTANTS_SEAL_CONSTANTS_H
diff --git a/include/script_buffers.h b/include/script_buffers.h
index 63aaf65d..40d1758a 100644
--- a/include/script_buffers.h
+++ b/include/script_buffers.h
@@ -3,6 +3,7 @@
#include "pokemon.h"
#include "pokemon_storage_system.h"
+#include "trainer_data.h"
struct UnkStruct_0200AA80_sub_sub
{
@@ -76,8 +77,8 @@ void BufferPoketchAppName(struct ScrStrBufs * mgr, u32 idx, u32 app);
void BufferTrainerClassName(struct ScrStrBufs * mgr, u32 idx, u32 trclass);
void BufferTrainerClassNameWithArticle(struct ScrStrBufs * mgr, u32 idx, u32 trclass);
void BufferTrainerClassName2(struct ScrStrBufs * mgr, u32 idx, struct Trainer * tr);
-void FUN_0200B10C(struct ScrStrBufs * mgr, u32 idx, u32 msgno);
-void FUN_0200B144(struct ScrStrBufs * mgr, u32 idx, void * unk_struct);
+void BufferTrainerName(struct ScrStrBufs * mgr, u32 idx, u32 msgno);
+void BufferTrainerNameFromDataStruct(struct ScrStrBufs * mgr, u32 idx, struct TrainerDataLoaded * trdata);
void BufferUndergroundItemName(struct ScrStrBufs * mgr, u32 idx, u32 item);
void BufferUndergroundItemNameWithArticle(struct ScrStrBufs * mgr, u32 idx, u32 item);
void BufferUndergroundTrapName(struct ScrStrBufs * mgr, u32 idx, u32 trap);
@@ -103,13 +104,13 @@ void BufferPoffinName(struct ScrStrBufs * mgr, u32 idx, u32 poffin);
void BufferFashionName(struct ScrStrBufs * mgr, u32 idx, u32 fashion);
void BufferFashionNameWithArticle(struct ScrStrBufs * mgr, u32 idx, u32 fashion);
void BufferContestBackgroundName(struct ScrStrBufs * mgr, u32 idx, u32 bg);
-void FUN_0200B708(struct ScrStrBufs * mgr, struct SaveBlock2 * sav2, u32 r5, u32 idx, u32 sp28);
+void BufferEasyChatWord(struct ScrStrBufs * mgr, struct SaveBlock2 * sav2, u32 r5, u32 idx, u32 sp28);
void BufferMonthNameAbbr(struct ScrStrBufs * mgr, u32 idx, u32 month);
-void FUN_0200B7A8(struct ScrStrBufs * mgr, u32 idx);
+void ScrStrBufs_UpperFirstChar(struct ScrStrBufs * mgr, u32 idx);
void StringExpandPlaceholders(struct ScrStrBufs * mgr, struct String * dest, struct String * src);
-void FUN_0200B84C(struct ScrStrBufs * mgr);
-struct UnkStruct_0200B870 * FUN_0200B870(u32 r5, u32 r6, u32 sp4, u32 r4);
-void FUN_0200B990(struct UnkStruct_0200B870 * a0);
+void ScrStrBufs_ResetBuffers(struct ScrStrBufs * mgr);
+struct UnkStruct_0200B870 * MessagePrinter_new(u32 r5, u32 r6, u32 sp4, u32 r4);
+void MessagePrinter_delete(struct UnkStruct_0200B870 * a0);
void FUN_0200B9A8(struct UnkStruct_0200B870 * a0, int a1, int a2, int a3, int a4);
void FUN_0200B9EC(struct UnkStruct_0200B870 * string, u32 value, u32 n, enum PrintingMode mode, int sp30, int r5, int r7);
diff --git a/include/seal.h b/include/seal.h
index 9e31e2e4..7c4b04a5 100644
--- a/include/seal.h
+++ b/include/seal.h
@@ -7,18 +7,18 @@ typedef Coords8 CapsuleArray[8];
struct SealCase
{
CapsuleArray coords[12];
- u8 padding_120[0x50];
+ u8 sealCounts[80];
};
-u32 FUN_02029C58(void);
-void FUN_02029C60(struct SealCase * sealCase);
-void FUN_02029C74(const CapsuleArray * a0, CapsuleArray * a1);
-struct SealCase * FUN_02029C80(struct SaveBlock2 * sav2);
-CapsuleArray * FUN_02029C8C(struct SealCase * sealCase, s32 idx);
-void FUN_02029CA4(struct SealCase * sealCase, const CapsuleArray * src, s32 idx);
-Coords8 * FUN_02029CC8(CapsuleArray * a0, s32 a1);
-u8 FUN_02029CE0(Coords8 * a0);
-u8 FUN_02029CE4(Coords8 * a0);
-u8 FUN_02029CE8(Coords8 * a0);
+u32 Sav2_SealCase_sizeof(void);
+void Sav2_SealCase_init(struct SealCase * sealCase);
+void CapsuleArray_copy(const CapsuleArray * a0, CapsuleArray * a1);
+struct SealCase * Sav2_SealCase_get(struct SaveBlock2 * sav2);
+CapsuleArray * SealCase_GetCapsuleI(struct SealCase * sealCase, s32 idx);
+void SealCase_SetCapsuleI(struct SealCase * sealCase, const CapsuleArray * src, s32 idx);
+Coords8 * Capsule_GetSealI(CapsuleArray * a0, s32 a1);
+s32 Seal_GetId(Coords8 * a0);
+s32 Seal_GetXCoord(Coords8 * a0);
+s32 Seal_GetYCoord(Coords8 * a0);
#endif //POKEDIAMOND_SEAL_H
diff --git a/include/unk_020139D8.h b/include/unk_020139D8.h
index 652c9caf..3960a4be 100644
--- a/include/unk_020139D8.h
+++ b/include/unk_020139D8.h
@@ -13,12 +13,12 @@ struct UnkStruct_02013B28
u32 unk_4;
};
-struct UnkStruct_020139D8 * FUN_020139D8(u32 heap_id);
-void FUN_02013A10(struct UnkStruct_020139D8 * unk);
-void FUN_02013A30(struct UnkStruct_020139D8 * unk, u16 a1, struct String * str);
-void FUN_02013A58(u16 a0, struct String * a1);
-u16 FUN_02013A9C(u16 a0, u16 a1);
-void FUN_02013AEC(u32 a0, s32 * a1, s32 * a2);
+struct UnkStruct_020139D8 * EasyChatManager_new(u32 heap_id);
+void EasyChatManager_delete(struct UnkStruct_020139D8 * unk);
+void EasyChatManager_ReadWordIntoString(struct UnkStruct_020139D8 * unk, u16 a1, struct String * str);
+void GetECWordIntoStringByIndex(u16 a0, struct String * a1);
+u16 GetECWordIndexByPair(u16 a0, u16 a1);
+void GetCategoryAndMsgNoByECWordIdx(u32 a0, s32 * a1, s32 * a2);
u32 FUN_02013B28(void);
void FUN_02013B2C(struct UnkStruct_02013B28 * unk);
struct UnkStruct_02013B28 * FUN_02013B5C(struct SaveBlock2 * sav2);