mirror of
https://github.com/zeldaret/tp
synced 2026-06-01 17:58:04 -04:00
221f40e609
* add "global.h" to files that use it * add MSL_C includes to files that use them * remove dolphin includes from headers that don't need them * remove JSupport includes from headers that don't need them * remove JKernel includes from headers that don't need them * remove JUtility includes from headers that don't need them * remove J3D includes from headers that don't need them * remove J2D includes from headers that don't need them * remove JAudio2 includes from headers that don't need them * remove Z2AudioLib includes from headers that don't need them * remove JMessage includes from headers that don't need them * remove JParticle includes from headers that don't need them * remove SComponent includes from headers that don't need them * remove dol includes from headers that don't need them * sort includes
25 lines
745 B
C++
25 lines
745 B
C++
/**
|
|
* d_bomb.cpp
|
|
* dolzel2 - Bomb
|
|
*/
|
|
|
|
#include "d/d_bomb.h"
|
|
#include "d/d_procname.h"
|
|
#include "f_op/f_op_actor_mng.h"
|
|
|
|
bool dBomb_c::checkStateCarry() {
|
|
return (fopAcM_checkCarryNow(&mActor) || fopAcM_checkHookCarryNow(&mActor) ||
|
|
fopAcM_GetParam(&mActor) == 2 || fopAcM_GetParam(&mActor) == 1);
|
|
}
|
|
|
|
bool dBomb_c::checkFlowerBombWait(fopAc_ac_c* param_1) {
|
|
return (fopAcM_GetName(param_1) == PROC_NBOMB && fopAcM_GetParam(param_1) == 4);
|
|
}
|
|
|
|
bool dBomb_c::checkWaterBomb(fopAc_ac_c* param_1) {
|
|
return (fopAcM_GetName(&mActor) == PROC_NBOMB && daNbomb_c::checkWaterBomb());
|
|
}
|
|
|
|
bool dBomb_c::checkInsectBombMove(fopAc_ac_c* param_1) {
|
|
return (fopAcM_GetName(&mActor) == PROC_NBOMB && fopAcM_GetParam(&mActor) == 7);
|
|
} |