summaryrefslogtreecommitdiff
path: root/include/contest.h
blob: c263882ebf4eb4a978471d5ded324704938d634f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef GUARD_CONTEST_H
#define GUARD_CONTEST_H

struct ContestMove
{
    u8 effect;
    u8 contestCategory:3;
    u8 comboStarterId;
    u8 comboMoves[4];
};

struct ContestEffect
{
    u8 effectType;
    u8 appeal;
    u8 jam;
};

struct ContestStruct_02039E00
{
    u16 unk_00;
    u8 unk_02[11];
    u8 unk_0d[8];
    u8 filler_15[9];
    u8 filler_1E[34];
};

extern struct ContestStruct_02039E00 gUnknown_02039E00[4];
extern u8 gUnknown_02039F24;
extern u16 gSpecialVar_ContestCategory;
extern u8 gSpecialVar_ContestRank;
extern u8 gUnknown_02039F30;

struct ContestStruct_field_18
{
    // unknown size
    u16 field_0;
    u16 field_2;
    u16 field_4;
    u16 field_6;
    u32 field_8;
    u32 field_C;
    u32 field_10;
};

struct ContestResources
{
    void *field_0;
    void *field_4;
    void *field_8;
    void *field_C;
    void *field_10;
    void *field_14;
    struct ContestStruct_field_18 *field_18;
};

extern struct ContestResources *gContestResources;

bool8 IsSpeciesNotUnown(u16 species);
void LoadContestBgAfterMoveAnim(void);

#endif //GUARD_CONTEST_H