Skip to content

Commit 9872237

Browse files
committed
d_a_obj_testcube mostly done
1 parent 86402d0 commit 9872237

File tree

2 files changed

+420
-17
lines changed

2 files changed

+420
-17
lines changed

include/d/actor/d_a_obj_testcube.h

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,49 @@
22
#define D_A_OBJ_TESTCUBE_H
33

44
#include "f_op/f_op_actor_mng.h"
5+
#include "d/d_bg_s_movebg_actor.h"
6+
7+
class daObjCube_c : public dBgS_MoveBgActor {
8+
public:
9+
#if DEBUG
10+
daObjCube_c() {}
11+
12+
void getDzbName(char*);
13+
void getBmdName(char*);
14+
void initBaseMtx();
15+
void setBaseMtx();
16+
int create();
17+
18+
virtual int CreateHeap();
19+
virtual int Create();
20+
virtual int Execute(Mtx**);
21+
virtual int Draw();
22+
virtual int Delete();
23+
24+
/* 0x5A8 */ request_of_phase_process_class mPhase;
25+
/* 0x5B0 */ J3DModel* mpModel;
26+
/* 0x5B4 */ u8 mShape;
27+
/* 0x5B5 */ u8 mNameArg;
28+
/* 0x5B6 */ u8 field_0x5b6;
29+
#endif
30+
};
31+
32+
namespace daObjCube_prm {
33+
inline u8 getNameArg(daObjCube_c* i_this) {
34+
return fopAcM_GetParam(i_this) & 0xFF;
35+
}
36+
37+
inline u8 getShape(daObjCube_c* i_this) {
38+
return (fopAcM_GetParam(i_this) >> 0x1C) & 7;
39+
}
40+
41+
inline u8 getSwitch(daObjCube_c* i_this) {
42+
return (fopAcM_GetParam(i_this) >> 8) & 0xFF;
43+
}
44+
45+
inline u8 getArg0(daObjCube_c* i_this) {
46+
return fopAcM_GetParam(i_this) >> 0x1F;
47+
}
48+
}
549

650
#endif /* D_A_OBJ_TESTCUBE_H */

0 commit comments

Comments
 (0)