summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_e_ge.h
blob: c202e75231a7c4962b69c74ec2e5e051b02ef050 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#ifndef D_A_E_GE_H
#define D_A_E_GE_H

#include "d/d_bg_s_acch.h"
#include "d/d_cc_d.h"
#include "d/d_cc_uty.h"
#include "f_op/f_op_actor_mng.h"

/**
 * @ingroup actors-enemies
 * @class daE_GE_c
 * @brief Guay
 *
 * @details
 *
 */
class daE_GE_c : public fopEn_enemy_c {
public:
    typedef void (daE_GE_c::*actionFunc)();

    void bckSet(int, f32, u8, f32);
    bool bckCheck(int);
    int draw();
    bool checkBeforeBg(int, f32);
    void setActionMode(int);
    void damage_check();
    bool checkOtherAttacker();
    bool searchNextAttacker();
    bool checkCircleSpeedAdd(cXyz*, cXyz*);
    void setAddCalcSpeed(cXyz&, cXyz const&, f32, f32, f32, f32);
    cXyz calcCircleFly(cXyz*, cXyz*, s16, f32, s16, f32);
    void executeWait();
    void executeFly();
    bool checkAttackPossible(s16, bool);
    void executeAttack();
    void setBackAnime(int);
    void executeBack();
    void executeDown();
    void setSurpriseTime(s16);
    void setSurprise();
    void executeSurprise();
    void setCaw();
    void executeCaw();
    void executeWind();
    void executeShield();
    void action();
    void mtx_set();
    void cc_set();
    int execute();
    int _delete();
    int CreateHeap();
    int create();

    s16 getSurpriseTime() { return mSurpriseTime; }

    s32 getActionMode() { return mActionMode; }

    s32 getMoveType() {  // needs to be s32 for some reason
        return mMoveType;
    }

    u8 getGroupNo() { return mGroupNo; }

private:
    /* 0x5AC */ request_of_phase_process_class mPhaseReq;
    /* 0x5B4 */ mDoExt_McaMorfSO* mpMorfSO;
    /* 0x5B8 */ Z2CreatureEnemy mSound;
    /* 0x65C */ dBgS_AcchCir mAcchCir;
    /* 0x69C */ dBgS_ObjAcch mObjAcch;
    /* 0x874 */ dCcD_Stts mStts;
    /* 0x8B0 */ dCcD_Sph mSphere;
    /* 0x9E8 */ dCcD_Sph mSphere2;
    /* 0xB20 */ dCcU_AtInfo mAtInfo;
    /* 0xB44 */ u32 mSmokeKey;
    /* 0xB48 */ u32 mSmokeKey2;
    /* 0xB4C */ cXyz field_0xb4c;
    /* 0xB58 */ f32 field_0xb58;
    /* 0xB5C */ f32 field_0xb5c;
    /* 0xB60 */ f32 field_0xb60;
    /* 0xB64 */ f32 field_0xb64;
    /* 0xB68 */ f32 field_0xb68;
    /* 0xB6C */ u8 field_0xB6C[0xB70 - 0xB6C];
    /* 0xB70 */ int mActionMode;
    /* 0xB74 */ int mPrevActionMode;
    /* 0xB78 */ int mMode;
    /* 0xB7C */ int mSubMode;
    /* 0xB80 */ int mBackAnimeTimer;
    /* 0xB84 */ u32 mShadowKey;
    /* 0xB88 */ s16 mHitDirectionY; // not really used
    /* 0xB8A */ s16 field_0xb8a;
    /* 0xB8C */ s16 field_0xb8c;
    /* 0xB8E */ s16 field_0xb8e[2];
    /* 0xB92 */ s16 mDamageCooldownTimer;
    /* 0xB94 */ s16 mSurpriseTime;
    /* 0xB96 */ s16 mAnmChangeTimer;
    /* 0xB98 */ s16 mCircleFlyScale;
    /* 0xB9A */ u8 mMoveType;
    /* 0xB9B */ u8 mGroupNo;
    /* 0xB9C */ u8 mSwitch;
    /* 0xB9D */ u8 field_0xb9d;
    /* 0xB9E */ u8 field_0xb9e;
    /* 0xB9F */ u8 mHIOInit;

    static actionFunc l_actionmenu[9];
};

STATIC_ASSERT(sizeof(daE_GE_c) == 0xBA0);

#endif /* D_A_E_GE_H */