1#include <game/bases/d_en_obake_door.hpp>
13 BIT_FLAG(CC_KIND_PLAYER),
22 nw4r::g3d::ResMdl resMdl =
mResFile.GetResMdl(
"obj_obake_door");
23 mModel.create(resMdl, &
mAllocator, nw4r::g3d::ScnMdl::BUFFER_RESMATMISC, 1,
nullptr);
27 nw4r::g3d::ResAnmChr resAnmChr =
mResFile.GetResAnmChr(
"obj_obake_door");
32 nw4r::g3d::ResAnmChr resAnmChr =
mResFile.GetResAnmChr(
"obj_obake_door");
43 if (
mAngle.z.mAngle == 0) {
66 dAudio::g_pSndObjMap->startSound(SE_OBJ_DOOR_CLOSE,
mPos, 0);
70 dAudio::g_pSndObjMap->startSound(SE_OBJ_DOOR_OPEN,
mPos, 0);
74 return ACTOR_PARAM(IsDummy);
bool isState(const sStateIDIf_c &other) const
Checks if the actor is currently in the given state.
static void setSoftLight_MapObj(m3d::bmdl_c &mdl)
Sets the soft light effect for map objects.
dCc_c mCc
The actor-to-actor collision sensor.
mVec3_c mPos
The actor's position.
mAng3_c mAngle
The actor's rotation (for 2D actors).
virtual void setCloseAnm() override
Sets up the door close animation.
virtual void setWaitAnm() override
Stops all animations for the door.
virtual void setOpenSE() override
Plays the door opening SFX.
virtual void setOpenAnm() override
Sets up the door open animation.
virtual void setCloseSE() override
Plays the door closed SFX.
virtual void initAnm() override
Initializes the animation for the door.
virtual void createMdl() override
Creates the model and animation for the door.
virtual void waitProc() override
Executed every frame during the Wait state.
virtual void initCcData() override
Initializes collision data for the door.
virtual bool isClosed() override
Checks whether the door is closed.
virtual bool isDummyOpen() override
Returns whether the door must act like fake Ghost House Doors.
static dResMng_c * m_instance
The instance of this class.
m3d::mdl_c mModel
The door model.
static sFStateID_c< daEnDoor_c > StateID_Wait
Waiting for players to interact with the door.
nw4r::g3d::ResFile mResFile
The resource file.
dHeapAllocator_c mAllocator
The allocator.
m3d::anmChr_c mAnim
The door model animation.
static void ccCallback(dCc_c *self, dCc_c *other)
Collision callback for the door.
#define ACTOR_PROFILE(profName, className, properties)
Creates an actor profile, using the profile number as the execute and draw order value.
@ FORWARD_ONCE
Play the animation forward once.
@ REVERSE_ONCE
Play the animation in reverse once.
A structure that contains information about a collider.