mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-04 10:26:16 -04:00
6ec6fce8cb
* Fix JUT_ASSERT to be a nested define * Switch names that appear in asserts to be constants instead of defines * Replace `0` in asserts with `NULL` or `FALSE` * Fix fpclassify * Fix ARRAY_SIZE * Use G_CM3D_F_INF * More fixes for fpclassify * Remove FLOAT_LABEL * Remove incorrect FLAG_ON macro * Remove UNK_BSS macro * Silence clangd unused header warning for PCH
28 lines
836 B
C++
28 lines
836 B
C++
/**
|
|
* d_bomb.cpp
|
|
* dolzel2 - Bomb
|
|
*/
|
|
|
|
#include "d/dolzel.h" // IWYU pragma: keep
|
|
|
|
#include "d/d_bomb.h"
|
|
#include "d/actor/d_a_nbomb.h"
|
|
|
|
bool dBomb_c::checkStateCarry() {
|
|
return (fopAcM_checkCarryNow(this) || fopAcM_checkHookCarryNow(this) ||
|
|
fopAcM_GetParam(this) == PRM_BOMB_HOOKSHOT || fopAcM_GetParam(this) == PRM_BOMB_CARRY);
|
|
}
|
|
|
|
bool dBomb_c::checkFlowerBombWait(fopAc_ac_c* i_actor) {
|
|
return (fopAcM_GetName(i_actor) == PROC_NBOMB && fopAcM_GetParam(i_actor) == PRM_FLOWER_BOMB);
|
|
}
|
|
|
|
bool dBomb_c::checkWaterBomb(fopAc_ac_c* i_actor) {
|
|
return (fopAcM_GetName(i_actor) == PROC_NBOMB && ((daNbomb_c*)i_actor)->checkWaterBomb());
|
|
}
|
|
|
|
bool dBomb_c::checkInsectBombMove(fopAc_ac_c* i_actor) {
|
|
return (fopAcM_GetName(i_actor) == PROC_NBOMB &&
|
|
fopAcM_GetParam(i_actor) == PRM_INSECT_BOMB_MOVE);
|
|
}
|