mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 23:05:36 -04:00
12eb254d76
* switch to dtk setup * some cleanup / fixes * cleanup d_a_alink literals * Restore doxygen, update CI & README.md (#1) * Fix build image ref (#2) --------- Co-authored-by: Luke Street <luke@street.dev>
25 lines
791 B
C++
25 lines
791 B
C++
/**
|
|
* d_bomb.cpp
|
|
* dolzel2 - Bomb
|
|
*/
|
|
|
|
#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);
|
|
} |