1#include <game/bases/d_en_castle_door.hpp>
13 BIT_FLAG(CC_KIND_PLAYER),
22 nw4r::g3d::ResMdl resMdl =
mResFile.GetResMdl(
"obj_door_shiroboss");
23 mModel.create(resMdl, &
mAllocator, nw4r::g3d::ScnMdl::BUFFER_RESMATMISC, 1,
nullptr);
27 nw4r::g3d::ResAnmChr resAnmChr =
mResFile.GetResAnmChr(
"obj_door_shiroboss");
32 nw4r::g3d::ResAnmChr resAnmChr =
mResFile.GetResAnmChr(
"obj_door_shiroboss");
63void UNUSED_dEnCastleDoor_c() {
76 dAudio::g_pSndObjMap->startSound(SE_OBJ_BDOOR_CLOSE,
mPos, 0);
80 dAudio::g_pSndObjMap->startSound(SE_OBJ_BDOOR_OPEN,
mPos, 0);
sRangeDataF mDestroyBound
static void setSoftLight_MapObj(m3d::bmdl_c &mdl)
Sets the soft light effect for map objects.
static const float smc_CULL_YLIMIT
The default max bound Y offset.
dCc_c mCc
The actor-to-actor collision sensor.
static const float smc_CULL_XLIMIT
The default max bound X offset.
mVec3_c mPos
The actor's position.
A red door used in castles.
virtual void setCloseMoveSE() override
Plays the door closing SFX.
virtual void initCcData() override
Initializes collision data for the door.
virtual void setCloseAnm() override
Sets up the door close animation.
virtual void initAnm() override
Initializes the animation for the door.
virtual void setCloseSE() override
Plays the door closed SFX.
virtual void createMdl() override
Creates the model and animation for the door.
virtual void setOpenSE() override
Plays the door opening SFX.
virtual void setWaitAnm() override
Stops all animations for the door.
virtual void setOpenAnm() override
Sets up the door open animation.
virtual void initialize() override
Initializes other elements, called by create().
static dResMng_c * m_instance
The instance of this class.
virtual bool ActorDrawCullCheck() override
Checks if the actor is out of view.
m3d::mdl_c mModel
The door model.
nw4r::g3d::ResFile mResFile
The resource file.
virtual bool isDummyOpen()
Returns whether the door must act like fake Ghost House Doors.
dHeapAllocator_c mAllocator
The allocator.
m3d::anmChr_c mAnim
The door model animation.
virtual void waitProc()
Executed every frame during the Wait state.
static void ccCallback(dCc_c *self, dCc_c *other)
Collision callback for the door.
fBaseID_e mUniqueID
The base's unique identifier.
#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.