summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_obj_knBullet.h
blob: e8056fbb254857f568bcd60547af1f98a91a334c (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
#ifndef D_A_OBJ_KNBULLET_H
#define D_A_OBJ_KNBULLET_H

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

/**
 * @ingroup actors-objects
 * @class daObjKnBullet_c
 * @brief Hero's Shade Energy Ball? (Knight Bullet)
 *
 * @details
 *
 */
class daObjKnBullet_c : public fopAc_ac_c {
public:
    int Create();
    int Execute();
    int Draw();
    int Delete();
    void setBaseMtx();
    void col_init();
    BOOL col_chk();
    void hitPrtclSet();

    u8 getActionMode() { return mActionMode; }
    void setActionMode(u8 i_action) { mActionMode = i_action; }

private:
    /* 0x568 */ Mtx mMtx;
    /* 0x598 */ dCcD_Stts mCcStts;
    /* 0x5D4 */ dCcD_Sph mCcSph;
    /* 0x70C */ u8 mActionMode;
    /* 0x70E */ s16 mTimer;
    /* 0x710 */ u32 mEmtIds[3];
};

STATIC_ASSERT(sizeof(daObjKnBullet_c) == 0x71c);

struct daObjKnBullet_Hio_Param_c {
    /* 0x0 */ f32 radius;
    /* 0x4 */ f32 move_speed;
    /* 0x8 */ s16 lifetime;
};

#endif /* D_A_OBJ_KNBULLET_H */