summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_npc_shop0.h
blob: a2a1ac50a6ee282e2f55a9bf5faad06696b4f28e (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
#ifndef D_A_NPC_SHOP0_H
#define D_A_NPC_SHOP0_H

#include "d/actor/d_a_npc.h"

/**
 * @ingroup actors-npcs
 * @class daNpc_Shop0_c
 * @brief Shop 0?
 *
 * @details
 *
 */

class daNpc_Shop0_Param_c {
public:
    virtual ~daNpc_Shop0_Param_c() {};
    
    struct param {
        /* 0x0 */ u32 mParam1;
        /* 0x4 */ u32 mParam2;
        /* 0x8 */ u32 mParam3;
    };

    static param const mParam;
};


class daNpc_Shop0_c : public fopAc_ac_c {
public:
    virtual ~daNpc_Shop0_c();
    int create();
    int createHeap();
    int destroy();
    int execute();
    int draw();
    char* getResName();
    void getParam();
    int getFlowNodeNum();
    int isDelete();
    int init();
    J3DAnmTransform* getTrnsfrmAnmP(int, char**);
    int setBckAnm(J3DAnmTransform*, f32, int, int, int, bool);
    int setCollision();
    int checkEvent();
    void orderEvent();
    void setMtx();
    void setRoomInf();
    int cut_alert(int, int);
    int chkProcess(int (daNpc_Shop0_c::*)(void*));
    int setProcess(int (daNpc_Shop0_c::*)(void*), void*, int);
    int wait(void*);
    int talk(void*);

    static dCcD_SrcCyl const mCylDat;

    /* 0x56c */ u8 mParam;
    /* 0x570 */ mDoExt_bckAnm mBckAnm;
    /* 0x58c */ f32 mPlaySpeed;
    /* 0x590 */ u32 mFlowNodeNum;
    /* 0x594 */ dMsgFlow_c mMsgFlow;
    /* 0x5e0 */ request_of_phase_process_class mPhaseReq;
    /* 0x5e8 */ J3DModel* mpModel;
    /* 0x5ec */ f32 mGroundCross;
    /* 0x5f0 */ dBgS_ObjGndChk mGndChk;
    /* 0x644 */ daNpc_Shop0_Param_c* mpShopParam;
    /* 0x648 */ dBgS_AcchCir mAcchCir;
    /* 0x688 */ dBgS_ObjAcch mAcch;
    /* 0x860 */ dCcD_Stts mStts;
    /* 0x89c */ dCcD_Cyl mCyl;
    /* 0x9d8 */ s32 mMode;
    /* 0x9dc */ int (daNpc_Shop0_c::*mProcess)(void*);
    /* 0x9e8 */ s16 field_0x9e8;
    /* 0x9ea */ u8 field_0x9ea;
};

STATIC_ASSERT(sizeof(daNpc_Shop0_c) == 0x9ec);

#endif /* D_A_NPC_SHOP0_H */