summaryrefslogtreecommitdiff
path: root/include/d/d_place_name.h
blob: db86d707e318f690a9539a7657c0e6daad89da50 (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

#ifndef D_PLACE_NAME_H
#define D_PLACE_NAME_H

#include "d/d_drawlist.h"
#include "f_op/f_op_msg_mng.h"

class J2DScreen;
class mDoDvdThd_toMainRam_c;

class dPlace_name_c : public dDlst_base_c {
public:
    virtual ~dPlace_name_c() {}
    void setScreen(const char*, JKRArchive*);
    BOOL _openAnime();
    BOOL _closeAnime();
    virtual void draw();

    void addCounter() { pane.mUserArea++; }
    void decCounter() { pane.mUserArea--; }
    s16 getCounter() { return pane.mUserArea; }
    void changeTexture(const ResTIMG* image) {
        ((J2DPicture*)pane.pane)->changeTexture(image, 0);
    }
    void deleteScreen() { delete scrn; }

public:
    /* 0x04 */ J2DScreen * scrn;
    /* 0x08 */ fopMsgM_pane_class pane;
};

class dPn_c : public msg_class {
public:
    cPhs_State _create();
    BOOL _execute();
    BOOL _draw();
    BOOL _delete();

public:
    /* 0x0FC */ JKRExpHeap * mpHeap;
    /* 0x100 */ request_of_phase_process_class mPhs;
    /* 0x108 */ dPlace_name_c * dPn_scrn;
    /* 0x11C */ mDoDvdThd_toMainRam_c * dvd;
    /* 0x114 */ ResTIMG * mpTIMG;
    /* 0x118 */ u8 mState;
    /* 0x119 */ u8 pad[3];
};

#endif /* D_PLACE_NAME_H */