mirror of
https://github.com/zeldaret/tp
synced 2026-05-24 07:11:06 -04:00
a61e3491f7
* initial freezard actor struct + setActionMode OK * daE_FZ_Draw * setReflectAngle * mBoundSoundset * daE_FZ_Execute & execute * demoDelete * daE_FZ_Delete & _delete * CreateHeap * useHeapInit * cc_set * mtx_set * action WIP * way_gake_check * executeRollMove * executeMove * draw WIP * executeDamage * checkpoint * create * checkpoint * daE_FZ_c::executeWait * checkpoint * daE_FZ_c::damage_check almost done * rm asm * rm headers * setup_profile WIP + doxygen update * fix merge issues * docs fix? * fix2 * doxygen updates * setup g_profile_E_FZ, profile setup script WIP * update github actions * update progress.md
33 lines
794 B
C++
33 lines
794 B
C++
#ifndef A_OBJ_D_A_OBJ_ITEM_H
|
|
#define A_OBJ_D_A_OBJ_ITEM_H
|
|
|
|
#include "d/a/d_a_item_static.h"
|
|
|
|
namespace daItem_prm {
|
|
static inline u8 getItemNo(daItem_c* item) {
|
|
return fopAcM_GetParam(item);
|
|
}
|
|
|
|
static inline u32 getItemBitNo(daItem_c* item) {
|
|
return (fopAcM_GetParam(item) >> 8) & 0xFF;
|
|
}
|
|
|
|
static inline u16 getSwOnWaitTimer(daItem_c* item) {
|
|
return item->field_0x92e & 0x3F;
|
|
}
|
|
|
|
static inline u8 checkInWater(daItem_c* item) {
|
|
return fopAcM_GetParamBit(item, 0x1C, 4);
|
|
}
|
|
|
|
static inline u8 getType(daItem_c* item) {
|
|
return (fopAcM_GetParam(item) >> 0x18) & 0xF;
|
|
}
|
|
|
|
static inline u8 getSwitchNo(daItem_c* item) {
|
|
return (fopAcM_GetParam(item) >> 0x10) & 0xFF;
|
|
}
|
|
};
|
|
|
|
#endif /* A_OBJ_D_A_OBJ_ITEM_H */
|