mirror of
https://github.com/zeldaret/tp
synced 2026-06-05 19:28:18 -04:00
febfd40837
* make nbomb inherit instead of creating an object * add newline at the end of the cpp
25 lines
692 B
C++
25 lines
692 B
C++
/**
|
|
* d_bomb.cpp
|
|
* dolzel2 - Bomb
|
|
*/
|
|
|
|
#include "d/d_bomb.h"
|
|
#include "d/d_procname.h"
|
|
|
|
bool dBomb_c::checkStateCarry() {
|
|
return (fopAcM_checkCarryNow(this) || fopAcM_checkHookCarryNow(this) ||
|
|
fopAcM_GetParam(this) == 2 || fopAcM_GetParam(this) == 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(this) == PROC_NBOMB && daNbomb_c::checkWaterBomb());
|
|
}
|
|
|
|
bool dBomb_c::checkInsectBombMove(fopAc_ac_c* param_1) {
|
|
return (fopAcM_GetName(this) == PROC_NBOMB && fopAcM_GetParam(this) == 7);
|
|
}
|