summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_obj_sword.h
blob: 163175ddec74cf6fa51941c719075478fa70d546 (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
#ifndef D_A_OBJ_SWORD_H
#define D_A_OBJ_SWORD_H

#include "d/actor/d_a_itembase.h"

/**
 * @ingroup actors-objects
 * @class daObjSword_c
 * @brief Ordon Sword
 *
 * @details
 *
 */
class daObjSword_c : public daItemBase_c {
public:
    typedef int (daObjSword_c::*actionFunc)();

    void initBaseMtx();
    void setBaseMtx();
    int Create();
    cPhs_Step create();
    int actionWait();
    int initActionOrderGetDemo();
    int actionOrderGetDemo();
    int actionGetDemo();
    int execute();
    int draw();
    int _delete();

    u8 getItemBit() { return fopAcM_GetParamBit(this, 0, 8); }
    u8 getSwbit() { return fopAcM_GetParamBit(this, 8, 8); }
    void setStatus(u8 status) { mStatus = status; }

private:
    /* 0x92c */ u32 field_0x92c;
    /* 0x930 */ fpc_ProcID mProcID;
    /* 0x934 */ u8 mStatus;
};

STATIC_ASSERT(sizeof(daObjSword_c) == 0x938);

#endif /* D_A_OBJ_SWORD_H */