mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-06 09:55:11 -04:00
d_a_cstatue Matching (#2419)
* d_a_cstatue * fix includes in d_com_inf_game * remove todos * create daCstatue_TYPE enum * name fields and add enums * fix procCopyRodSwingInit * apply suggestions
This commit is contained in:
@@ -33,8 +33,7 @@
|
||||
const fpc_ProcID procID = fopAcM_GetID(i_this); \
|
||||
"Create -> " actor_name_str "(id=%d)\n"
|
||||
|
||||
#define fopAcM_RegisterDelete(i_this, actor_name_str) \
|
||||
"Delete -> " actor_name_str "\n"
|
||||
#define fopAcM_RegisterDelete(i_this, actor_name_str) "Delete -> " actor_name_str "\n"
|
||||
|
||||
#define fopAcM_RegisterCreate(actor_class, i_this, actor_name_str) \
|
||||
static_cast<actor_class*>(i_this); \
|
||||
@@ -380,7 +379,8 @@ inline int fopAcM_GetCullSize(const fopAc_ac_c* i_actor) {
|
||||
}
|
||||
|
||||
inline BOOL fopAcM_CULLSIZE_IS_BOX(int i_culltype) {
|
||||
return (i_culltype >= 0 && i_culltype < fopAc_CULLBOX_CUSTOM_e) || i_culltype == fopAc_CULLBOX_CUSTOM_e;
|
||||
return (i_culltype >= 0 && i_culltype < fopAc_CULLBOX_CUSTOM_e) ||
|
||||
i_culltype == fopAc_CULLBOX_CUSTOM_e;
|
||||
}
|
||||
|
||||
inline const cXyz& fopAcM_getCullSizeSphereCenter(const fopAc_ac_c* i_actor) {
|
||||
@@ -602,8 +602,7 @@ fpc_ProcID fopAcM_createItemFromTable(cXyz const* i_pos, int i_tableNo, int i_it
|
||||
bool i_createDirect);
|
||||
|
||||
fpc_ProcID fopAcM_createDemoItem(const cXyz* i_pos, int i_itemNo, int i_itemBitNo,
|
||||
const csXyz* i_angle, int i_roomNo, const cXyz* scale,
|
||||
u8 param_7);
|
||||
const csXyz* i_angle, int i_roomNo, const cXyz* scale, u8 param_7);
|
||||
|
||||
fpc_ProcID fopAcM_createItemForBoss(const cXyz* i_pos, int i_itemNo, int i_roomNo,
|
||||
const csXyz* i_angle, const cXyz* i_scale, f32 i_speedF,
|
||||
@@ -767,21 +766,23 @@ inline void fopAcM_effSmokeSet2(u32* param_0, u32* param_1, cXyz const* param_2,
|
||||
fopAcM_effSmokeSet1(param_0, param_1, param_2, param_3, param_4, param_5, 0);
|
||||
}
|
||||
|
||||
inline void fopAcM_setWarningMessage_f(const fopAc_ac_c* i_actor, const char* i_filename, int i_line, const char* i_msg, ...) {
|
||||
inline void fopAcM_setWarningMessage_f(const fopAc_ac_c* i_actor, const char* i_filename,
|
||||
int i_line, const char* i_msg, ...) {
|
||||
#ifdef DEBUG
|
||||
/* va_list args;
|
||||
va_start(args, i_msg);
|
||||
|
||||
char buf[64];
|
||||
snprintf(buf, sizeof(buf), "<%s> %s", dStage_getName(fopAcM_GetProfName(i_actor), i_actor->subtype), i_msg);
|
||||
setWarningMessage_f_va(JUTAssertion::getSDevice(), i_filename, i_line, buf, args);
|
||||
snprintf(buf, sizeof(buf), "<%s> %s", dStage_getName(fopAcM_GetProfName(i_actor),
|
||||
i_actor->subtype), i_msg); setWarningMessage_f_va(JUTAssertion::getSDevice(), i_filename,
|
||||
i_line, buf, args);
|
||||
|
||||
va_end(args); */
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#define fopAcM_setWarningMessage(i_actor, i_filename, i_line, i_msg) \
|
||||
#define fopAcM_setWarningMessage(i_actor, i_filename, i_line, i_msg) \
|
||||
fopAcM_setWarningMessage_f(i_actor, i_filename, i_line, i_msg)
|
||||
#else
|
||||
#define fopAcM_setWarningMessage(...)
|
||||
@@ -798,6 +799,7 @@ public:
|
||||
static cXyz* getCrossP() { return mLineCheck.GetCrossP(); }
|
||||
static bool lineCheck(const cXyz*, const cXyz*, const fopAc_ac_c*);
|
||||
static bool getTriPla(cM3dGPla* o_tri) { return dComIfG_Bgsp().GetTriPla(mLineCheck, o_tri); }
|
||||
static s32 getWallCode() { return dComIfG_Bgsp().GetWallCode(mLineCheck); }
|
||||
static bool checkWallHit() {
|
||||
cM3dGPla poly;
|
||||
getTriPla(&poly);
|
||||
|
||||
Reference in New Issue
Block a user