Skip to content

Commit 221e90a

Browse files
authored
Move ItemStateTable to it/items/types.h (#1257)
1 parent 27e87e1 commit 221e90a

File tree

161 files changed

+436
-226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+436
-226
lines changed

src/melee/ft/chara/ftNess/ftNs_AttackHi4.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "ftCommon/forward.h"
2-
#include "it/forward.h"
32
#include "lb/forward.h"
43

54
#include "ftNs_AttackHi4.h"
@@ -19,6 +18,7 @@
1918
#include "ftNess/types.h"
2019
#include "it/items/it_27CF.h"
2120
#include "it/itYoyo.h"
21+
#include "it/types.h"
2222
#include "lb/lb_00B0.h"
2323
#include "lb/lbcollision.h"
2424
#include "lb/lbrefract.h"

src/melee/ft/chara/ftSeak/ftSk_SpecialS.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "it/forward.h"
21
#include "lb/forward.h"
32

43
#include "ftSeak/ftSk_SpecialS.h"
@@ -17,6 +16,7 @@
1716
#include "ftSeak/ftSk_Init.h"
1817
#include "ftSeak/types.h"
1918
#include "it/items/it_27CF.h"
19+
#include "it/types.h"
2020
#include "lb/lb_00B0.h"
2121
#include "lb/lbcollision.h"
2222
#include "lb/lbrefract.h"

src/melee/it/forward.h

-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ typedef struct ItemAttr ItemAttr;
2020
typedef struct ItemCommonData ItemCommonData;
2121
typedef struct ItemDynamics ItemDynamics;
2222
typedef struct ItemDynamicsDesc ItemDynamicsDesc;
23-
typedef struct ItemLogicTable ItemLogicTable;
2423
typedef struct ItemModelDesc ItemModelDesc;
2524
typedef struct ItemModStruct ItemModStruct;
2625
typedef struct ItemStateArray ItemStateArray;
2726
typedef struct ItemStateDesc ItemStateDesc;
28-
typedef struct ItemStateTable ItemStateTable;
2927
typedef struct itSword_ItemVars itSword_ItemVars;
3028
typedef struct SpawnItem SpawnItem;
3129
typedef struct UnkItemArticles3 UnkItemArticles3;

src/melee/it/it_2725.h

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include "it/forward.h"
77
#include <baselib/forward.h>
88

9+
#include "it/items/types.h"
10+
911
#include <placeholder.h>
1012

1113
/* 272CC0 */ HSD_JObj* it_80272CC0(Item_GObj*, enum_t);
@@ -27,5 +29,9 @@
2729
/* 27B378 */ void it_8027B378(Fighter_GObj*, Item_GObj*, float);
2830
/* 27C8B0 */ void it_8027C8B0(Item_GObj*);
2931
/* 27CE44 */ void it_8027CE44(Item_GObj*);
32+
/* 3F14C4 */ extern struct ItemLogicTable it_803F14C4[43];
33+
/* 3F23CC */ extern struct ItemLogicTable it_803F23CC[];
34+
/* 3F3100 */ extern struct ItemLogicTable it_803F3100[118];
35+
/* 3F4D20 */ extern struct ItemLogicTable it_803F4D20[];
3036

3137
#endif

src/melee/it/item.c

+1-6
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
#include "ef/efasync.h"
1212
#include "ef/eflib.h"
1313
#include "ft/ftlib.h"
14-
#include "ft/types.h"
1514
#include "gm/gm_1601.h"
1615
#include "gr/grlib.h"
1716
#include "gr/stage.h"
1817
#include "it/inlines.h"
18+
#include "it/it_2725.h"
1919
#include "it/types.h"
2020
#include "lb/lb_00B0.h"
2121
#include "lb/lb_00F9.h"
@@ -523,11 +523,6 @@ static /// @remarks #Item_8026862C loads two integers into this,
523523
return result;
524524
}
525525

526-
extern struct ItemLogicTable it_803F14C4[43];
527-
extern struct ItemLogicTable it_803F3100[118];
528-
extern struct ItemLogicTable it_803F23CC[];
529-
extern struct ItemLogicTable it_803F4D20[];
530-
531526
void Item_80267978(HSD_GObj* gobj)
532527
{
533528
Item* item_data = gobj->user_data;

src/melee/it/items/forward.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef MELEE_IT_ITEMS_FORWARD_H
22
#define MELEE_IT_ITEMS_FORWARD_H
33

4+
typedef struct ItemLogicTable ItemLogicTable;
5+
typedef struct ItemStateTable ItemStateTable;
46
typedef struct itSword_UnkArticle1 itSword_UnkArticle1;
57
typedef struct itSword_UnkBytes itSword_UnkBytes;
68

src/melee/it/items/it_27CF.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33

44
#include <platform.h>
55
#include "ft/forward.h"
6+
#include "it/forward.h"
67
#include <dolphin/mtx/forward.h>
78
#include <baselib/forward.h>
89

910
#include "ftSeak/types.h"
10-
#include "it/types.h"
11+
#include "it/items/types.h"
1112

1213
/* 27D670 */ void it_8027D670(Vec3* const);
1314
/* 27D730 */ void it_8027D730(Item_GObj*);

src/melee/it/items/it_2ADA.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#ifndef GALE01_2ADA1C
22
#define GALE01_2ADA1C
33

4+
#include "it/forward.h"
45
#include <dolphin/mtx/forward.h>
56

6-
#include "it/types.h"
7+
#include "it/items/types.h"
78

89
/* 2ADA1C */ void it_802ADA1C(Vec3* pos, Vec3* vel, float facing_dir);
910
/* 2ADBE4 */ void it_802ADBE4(Item_GObj*, Item_GObj*);

src/melee/it/items/it_2E5A.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#define GALE01_2E5AC4
33

44
#include <platform.h>
5+
#include "it/forward.h"
56

6-
#include "it/types.h"
7+
#include "it/items/types.h"
78

89
/* 2E6A40 */ bool it_802E6A40(Item_GObj*);
910
/* 2E6ACC */ void it_802E6ACC(Item_GObj*, Item_GObj*);

src/melee/it/items/it_2E6A.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#define GALE01_2E6AEC
33

44
#include <platform.h>
5+
#include "it/forward.h"
56

6-
#include "it/types.h"
7+
#include "it/items/types.h"
78

89
/* 2E6F7C */ bool it_802E6F7C(Item_GObj*);
910
/* 2E6FC0 */ bool it_802E6FC0(Item_GObj*);

src/melee/it/items/it_2F28.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#ifndef GALE01_2F28C8
22
#define GALE01_2F28C8
33

4-
#include "it/types.h"
4+
#include "it/forward.h"
5+
6+
#include "it/items/types.h"
57

68
/* 2F2BDC */ void it_802F2BDC(Item_GObj*, Item_GObj*);
79
/* 3F9470 */ extern ItemStateTable it_803F9470[];

src/melee/it/items/it_2F2B.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
#include <platform.h>
55
#include "ft/chara/ftYoshi/forward.h"
6+
#include "it/forward.h"
67

7-
#include "it/types.h"
8+
#include "it/items/types.h"
89

910
/* 2F2BFC */ void it_802F2BFC(Item_GObj* gobj, ftYs_GObj* owner_gobj);
1011
/* 2F2CE0 */ void it_802F2CE0(Item_GObj* gobj, bool has_destroy_type);

src/melee/it/items/itbat.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#define GALE01_284854
33

44
#include <platform.h>
5+
#include "it/forward.h"
56

6-
#include "it/types.h"
7+
#include "it/items/types.h"
78

89
/* 284910 */ void it_80284910(Item_GObj*);
910
/* 284AAC */ void it_80284AAC(Item_GObj*);

src/melee/it/items/itbombhei.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#ifndef GALE01_27D670
22
#define GALE01_27D670
33

4-
#include "it/types.h"
4+
#include "it/forward.h"
5+
6+
#include "it/items/types.h"
57

68
/* 27D76C */ void it_8027D76C(Item_GObj*);
79
/* 27E0B4 */ void it_8027E0B4(Item_GObj*);

src/melee/it/items/itbox.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#ifndef GALE01_286088
22
#define GALE01_286088
33

4-
#include "it/types.h"
4+
#include "it/forward.h"
5+
6+
#include "it/items/types.h"
57

68
/* 2861CC */ void it_802861CC(Item_GObj*);
79
/* 286208 */ void it_80286208(Item_GObj*);

src/melee/it/items/itcapsule.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
#define GALE01_27CF00
33

44
#include <platform.h>
5+
#include "it/forward.h"
56
#include <baselib/forward.h>
67

7-
#include "it/types.h"
8+
#include "it/items/types.h"
89

910
/* 27CF00 */ void it_8027CF00(Item_GObj*);
1011
/* 27CF30 */ void it_8027CF30(Item_GObj*);

src/melee/it/items/itcerebi.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#ifndef GALE01_2D3EF8
22
#define GALE01_2D3EF8
33

4-
#include "it/types.h"
4+
#include "it/forward.h"
5+
6+
#include "it/items/types.h"
57

68
/* 2D3EF8 */ void it_802D3EF8(Item_GObj*);
79
/* 2D3F4C */ void it_802D3F4C(Item_GObj*, Item_GObj*);

src/melee/it/items/itchicorita.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#ifndef GALE01_2C9588
22
#define GALE01_2C9588
33

4-
#include "it/types.h"
4+
#include "it/forward.h"
5+
6+
#include "it/items/types.h"
57

68
/* 2C9588 */ void it_802C9588(Item_GObj*);
79
/* 2C961C */ void it_802C961C(Item_GObj*, Item_GObj*);

src/melee/it/items/itchicoritaleaf.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#define GALE01_2C9B20
33

44
#include <platform.h>
5+
#include "it/forward.h"
56

6-
#include "it/types.h"
7+
#include "it/items/types.h"
78

89
/* 2C9C20 */ void it_802C9C20(Item_GObj*);
910
/* 2C9C78 */ bool it_802C9C78(Item_GObj*);

src/melee/it/items/itclimbersblizzard.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#define GALE01_2C2144
33

44
#include <platform.h>
5+
#include "it/forward.h"
56

6-
#include "it/types.h"
7+
#include "it/items/types.h"
78

89
/* 2C2424 */ bool it_802C2424(Item_GObj*);
910
/* 2C242C */ bool it_802C242C(Item_GObj*);

src/melee/it/items/itclimbersice.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#define GALE01_2C1590
33

44
#include <platform.h>
5+
#include "it/forward.h"
56

6-
#include "it/types.h"
7+
#include "it/items/types.h"
78

89
/* 2C17FC */ void it_802C17FC(Item_GObj*);
910
/* 2C1FC8 */ bool it_802C1FC8(Item_GObj*);

src/melee/it/items/itclimbersstring.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#ifndef GALE01_2C248C
22
#define GALE01_2C248C
33

4-
#include "it/types.h"
4+
#include "it/forward.h"
5+
6+
#include "it/items/types.h"
57

68
/* 2C37BC */ void it_802C37BC(Item_GObj*);
79
/* 2C3AA4 */ void it_802C3AA4(Item_GObj*, Item_GObj*);

src/melee/it/items/itclinkmilk.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#ifndef GALE01_2C8B28
22
#define GALE01_2C8B28
33

4-
#include "it/types.h"
4+
#include "it/forward.h"
5+
6+
#include "it/items/types.h"
57

68
/* 2C8C74 */ void it_802C8C74(Item_GObj*);
79
/* 2C8F2C */ void it_802C8F2C(Item_GObj*, Item_GObj*);

src/melee/it/items/itcoin.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#define GALE01_2F13B4
33

44
#include <platform.h>
5+
#include "it/forward.h"
56

6-
#include "it/types.h"
7+
#include "it/items/types.h"
78

89
/* 2F14E4 */ void it_802F14E4(Item_GObj*);
910
/* 2F1518 */ void it_802F1518(Item_GObj*);

src/melee/it/items/itcrazyhandbomb.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#define GALE01_2F0F6C
33

44
#include <platform.h>
5+
#include "it/forward.h"
56

6-
#include "it/types.h"
7+
#include "it/items/types.h"
78

89
/* 2F1094 */ void it_802F1094(Item_GObj*, Item_GObj*);
910
/* 2F10B4 */ bool it_802F10B4(Item_GObj*);

src/melee/it/items/itdkinoko.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#define GALE01_293A08
33

44
#include <platform.h>
5+
#include "it/forward.h"
56

6-
#include "it/types.h"
7+
#include "it/items/types.h"
78

89
/* 293A08 */ void it_80293A08(Item_GObj*);
910
/* 293D6C */ bool it_80293D6C(Item_GObj*);

src/melee/it/items/itdosei.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#ifndef GALE01_281164
22
#define GALE01_281164
33

4-
#include "it/types.h"
4+
#include "it/forward.h"
5+
6+
#include "it/items/types.h"
57

68
/* 281164 */ void it_80281164(Item_GObj*);
79
/* 28218C */ void it_8028218C(Item_GObj*);

src/melee/it/items/itdrmariopill.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
#include <platform.h>
55
#include "ft/forward.h"
6+
#include "it/forward.h"
67
#include <dolphin/mtx/forward.h>
78

8-
#include "it/types.h"
9+
#include "it/items/types.h"
910

1011
/* 2C09C4 */ Item_GObj* it_802C09C4(Fighter_GObj* owner, Vec3* pos, int,
1112
enum_t, bool, bool, float facing_dir);

src/melee/it/items/itegg.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#ifndef GALE01_288C88
22
#define GALE01_288C88
33

4-
#include "it/types.h"
4+
#include "it/forward.h"
5+
6+
#include "it/items/types.h"
57

68
/* 288D98 */ void it_80288D98(Item_GObj*);
79
/* 288F88 */ void it_80288F88(Item_GObj*);

src/melee/it/items/itentei.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#ifndef GALE01_2CF3E0
22
#define GALE01_2CF3E0
33

4-
#include "it/types.h"
4+
#include "it/forward.h"
5+
6+
#include "it/items/types.h"
57

68
/* 2CF3E0 */ void it_802CF3E0(Item_GObj*);
79
/* 2CF450 */ void it_802CF450(Item_GObj*, Item_GObj*);

src/melee/it/items/itevyoshiegg.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#define GALE01_29B0C8
33

44
#include <platform.h>
5+
#include "it/forward.h"
56

6-
#include "it/types.h"
7+
#include "it/items/types.h"
78

89
/* 29B188 */ void it_8029B188(Item_GObj*);
910
/* 29B1AC */ void it_8029B1AC(Item_GObj*);

src/melee/it/items/itfflower.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#define GALE01_292D48
33

44
#include <platform.h>
5+
#include "it/forward.h"
56

6-
#include "it/types.h"
7+
#include "it/items/types.h"
78

89
/* 292E04 */ void it_80292E04(Item_GObj*);
910
/* 293284 */ void it_80293284(Item_GObj*);

src/melee/it/items/itfflowerflame.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#ifndef GALE01_29A748
22
#define GALE01_29A748
33

4-
#include "it/types.h"
4+
#include "it/forward.h"
5+
6+
#include "it/items/types.h"
57

68
/* 29A9FC */ void it_8029A9FC(Item_GObj*);
79
/* 29AD1C */ void it_8029AD1C(Item_GObj*);

0 commit comments

Comments
 (0)