mirror of
https://github.com/zeldaret/tww.git
synced 2026-09-03 18:03:42 -04:00
d_a_obj_movebox work and cleanup
This commit is contained in:
@@ -146,6 +146,9 @@ public:
|
||||
void setVolumeSweep(float i_volSweep) { mVolumeSweep = i_volSweep; }
|
||||
void setLifeTime(s16 i_lifeTime) { mLifeTime = i_lifeTime; }
|
||||
void setRate(float i_rate) { mRate = i_rate; }
|
||||
void setDirectionalSpeed(float i_speed) { mInitialVelDir = i_speed; }
|
||||
void setAwayFromAxisSpeed(float i_speed) { mInitialVelAxis = i_speed; }
|
||||
void setSpread(float i_spread) { mSpread = i_spread; }
|
||||
|
||||
void stopCreateParticle() { setStatus(JPAEmtrStts_StopEmit); }
|
||||
void stopDrawParticle() { setStatus(JPAEmtrStts_StopDraw); }
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
#ifndef D_A_OBJ_BUOYFLAG_H
|
||||
#define D_A_OBJ_BUOYFLAG_H
|
||||
|
||||
#include "f_op/f_op_actor_mng.h"
|
||||
#include "m_Do/m_Do_mtx.h"
|
||||
|
||||
namespace daObjBuoyflag {
|
||||
enum Type_e {
|
||||
|
||||
};
|
||||
enum Texture_e {
|
||||
|
||||
};
|
||||
|
||||
class Act_c : public fopAc_ac_c {
|
||||
public:
|
||||
void setup(MtxP mtx) {
|
||||
cMtx_copy(mtx, m1090);
|
||||
}
|
||||
static s32 make_norm(unsigned int parentPId, cXyz* pos, int roomNo, csXyz* angle) {
|
||||
u32 params = prm_make(static_cast<Type_e>(0), static_cast<Texture_e>(0), false); // TODO: placeholder
|
||||
return fopAcM_createChild(
|
||||
PROC_Obj_Buoyflag, parentPId,
|
||||
params, pos,
|
||||
roomNo, angle, NULL, -1, NULL
|
||||
);
|
||||
}
|
||||
static u32 prm_make(daObjBuoyflag::Type_e, daObjBuoyflag::Texture_e, bool) {
|
||||
// TODO: placeholder function
|
||||
return 0;
|
||||
}
|
||||
public:
|
||||
/* 0x0290 */ u8 temp[0x1090 - 0x290];
|
||||
/* 0x1090 */ Mtx m1090;
|
||||
};
|
||||
};
|
||||
|
||||
#endif /* D_A_OBJ_BUOYFLAG_H */
|
||||
@@ -0,0 +1,22 @@
|
||||
#ifndef D_A_OBJ_JUMP_H
|
||||
#define D_A_OBJ_JUMP_H
|
||||
|
||||
#include "f_op/f_op_actor_mng.h"
|
||||
|
||||
namespace daObjJump {
|
||||
class Act_c : public fopAc_ac_c {
|
||||
public:
|
||||
void setup(const cXyz* pos) {
|
||||
current.pos = *pos;
|
||||
m336 = 1;
|
||||
}
|
||||
static u32 prm_make_b() {
|
||||
return 1;
|
||||
}
|
||||
public:
|
||||
/* 0x290 */ u8 temp[0x336 - 0x290];
|
||||
/* 0x336 */ u8 m336;
|
||||
};
|
||||
};
|
||||
|
||||
#endif /* D_A_OBJ_JUMP_H */
|
||||
@@ -0,0 +1,22 @@
|
||||
#ifndef D_A_OBJ_MKIE_H
|
||||
#define D_A_OBJ_MKIE_H
|
||||
|
||||
#include "f_op/f_op_actor_mng.h"
|
||||
|
||||
namespace daObjMkie {
|
||||
class Act_c : public fopAc_ac_c {
|
||||
public:
|
||||
void setup(const cXyz* pos) {
|
||||
current.pos = *pos;
|
||||
mF58 = 1;
|
||||
}
|
||||
static u32 prm_make(u8 eventId, int swNo) {
|
||||
return swNo << 0x10 | (eventId | 0x3000);
|
||||
}
|
||||
public:
|
||||
/* 0x290 */ u8 temp[0xF58 - 0x290];
|
||||
/* 0xF58 */ u8 mF58;
|
||||
};
|
||||
};
|
||||
|
||||
#endif /* D_A_OBJ_MKIE_H */
|
||||
@@ -0,0 +1,19 @@
|
||||
#ifndef D_A_OBJ_MMRR_H
|
||||
#define D_A_OBJ_MMRR_H
|
||||
|
||||
#include "f_op/f_op_actor_mng.h"
|
||||
|
||||
namespace daObjMmrr {
|
||||
class Act_c : public fopAc_ac_c {
|
||||
public:
|
||||
void setup(const cXyz* pos) {
|
||||
current.pos = *pos;
|
||||
mBF8 = 1;
|
||||
}
|
||||
public:
|
||||
/* 0x290 */ u8 temp[0xBF8 - 0x290];
|
||||
/* 0xBF8 */ u8 mBF8;
|
||||
};
|
||||
};
|
||||
|
||||
#endif /* D_A_OBJ_MMRR_H */
|
||||
Reference in New Issue
Block a user