1
1
#ifndef GUARD_DECORATION_H
2
2
#define GUARD_DECORATION_H
3
3
4
- enum DecorPerm {
4
+ enum DecorationPermission
5
+ {
5
6
/*
6
7
* The nomenclature here describes collision and placement permissions, in that order.
7
8
*/
8
9
DECORPERM_SOLID_FLOOR ,
9
10
DECORPERM_PASS_FLOOR ,
10
11
DECORPERM_BEHIND_FLOOR ,
11
12
DECORPERM_NA_WALL ,
12
- DECORPERM_SPRITE
13
+ DECORPERM_SPRITE ,
13
14
};
14
15
15
- enum DecorShape {
16
- /*
17
- * Width-x-height
18
- */
16
+ enum DecorationShape
17
+ {
19
18
DECORSHAPE_1x1 ,
20
19
DECORSHAPE_2x1 ,
21
20
DECORSHAPE_3x1 , // unused
@@ -25,53 +24,52 @@ enum DecorShape {
25
24
DECORSHAPE_1x3 , // unused
26
25
DECORSHAPE_2x4 ,
27
26
DECORSHAPE_3x3 ,
28
- DECORSHAPE_3x2
27
+ DECORSHAPE_3x2 ,
29
28
};
30
29
31
- enum DecorCat {
32
- /*
33
- * In which category you can find the decoration in the PC.
34
- */
35
- /*0*/ DECORCAT_DESK ,
36
- /*1*/ DECORCAT_CHAIR ,
37
- /*2*/ DECORCAT_PLANT ,
38
- /*3*/ DECORCAT_ORNAMENT ,
39
- /*4*/ DECORCAT_MAT ,
40
- /*5*/ DECORCAT_POSTER ,
41
- /*6*/ DECORCAT_DOLL ,
42
- /*7*/ DECORCAT_CUSHION
30
+ enum DecorationCategory
31
+ {
32
+ DECORCAT_DESK ,
33
+ DECORCAT_CHAIR ,
34
+ DECORCAT_PLANT ,
35
+ DECORCAT_ORNAMENT ,
36
+ DECORCAT_MAT ,
37
+ DECORCAT_POSTER ,
38
+ DECORCAT_DOLL ,
39
+ DECORCAT_CUSHION ,
40
+ DECORCAT_COUNT ,
43
41
};
44
42
45
43
struct Decoration
46
44
{
47
- /*0x00*/ u8 id ;
48
- /*0x01*/ u8 name [16 ];
49
- /*0x11*/ u8 permission ;
50
- /*0x12*/ u8 shape ;
51
- /*0x13*/ u8 category ;
52
- /*0x14*/ u16 price ;
53
- /*0x18*/ const u8 * description ;
54
- /*0x1c*/ const u16 * tiles ;
45
+ u8 id ;
46
+ u8 name [16 ];
47
+ u8 permission ;
48
+ u8 shape ;
49
+ u8 category ;
50
+ u16 price ;
51
+ const u8 * description ;
52
+ const u16 * tiles ;
55
53
};
56
54
57
- struct DecorPCPointers
55
+ struct DecorationPCContext
58
56
{
59
- /* 0x00 */ u8 * items ;
60
- /* 0x04 */ u8 * pos ;
61
- /* 0x08 */ u8 size ;
62
- /* 0x09 */ u8 isPlayerRoom ;
57
+ u8 * items ;
58
+ u8 * pos ;
59
+ u8 size ;
60
+ u8 isPlayerRoom ;
63
61
};
64
62
65
63
extern const struct Decoration gDecorations [];
66
- extern EWRAM_DATA u8 * gCurDecorInventoryItems ;
64
+ extern EWRAM_DATA u8 * gCurDecorationItems ;
67
65
extern EWRAM_DATA u8 gCurDecorationIndex ;
68
66
69
- void sub_8126968 (void );
70
- void sub_8126AD8 (u8 taskId );
67
+ void InitDecorationContextItems (void );
68
+ void DoSecretBaseDecorationMenu (u8 taskId );
71
69
void ShowDecorationOnMap (u16 mapX , u16 mapY , u16 decor );
72
- void sub_8126B2C (u8 taskId );
73
- void sub_8127208 (u8 taskId );
74
- void sub_8127250 (u8 * dest , u8 decorCat );
70
+ void DoPlayerRoomDecorationMenu (u8 taskId );
71
+ void ShowDecorationCategoriesWindow (u8 taskId );
72
+ void CopyDecorationCategoryName (u8 * dest , u8 decorCat );
75
73
bool8 IsSelectedDecorInThePC (void );
76
74
u8 AddDecorationIconObject (u8 decor , s16 x , s16 y , u8 priority , u16 tilesTag , u16 paletteTag );
77
75
0 commit comments