summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_tboxSw.h
blob: 3128320abd8fccba8a377f80d61abb3a56992879 (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
#ifndef D_A_TBOXSW_H
#define D_A_TBOXSW_H

#include "f_op/f_op_actor_mng.h"

/**
 * @ingroup actors-unsorted
 * @class daTboxSw_c
 * @brief Treasure Box Switch
 *
 * @details
 *
 */
class daTboxSw_c : public fopAc_ac_c {
public:
    int Create();
    int create();
    int execute();
    int draw();
    int _delete();
};

STATIC_ASSERT(sizeof(daTboxSw_c) == 0x568);

namespace daTboxSw_prm {
    inline u8 getTboxNo(daTboxSw_c* p_tbox) { return fopAcM_GetParam(p_tbox) & 0x3F; }
    inline u8 getSwNo(daTboxSw_c* p_tbox) { return fopAcM_GetParam(p_tbox) >> 8; }
};

#endif /* D_A_TBOXSW_H */