2#include <game/bases/d_effect.hpp>
4#include <game/bases/d_heap_allocator.hpp>
5#include <game/mLib/m_3d/anm_chr.hpp>
6#include <game/mLib/m_3d/anm_tex_srt.hpp>
7#include <game/mLib/m_3d/mdl.hpp>
8#include <game/bases/d_wm_obj_actor.hpp>
55 int getNodeIdx() {
return ACTOR_PARAM(Node); }
dWmObjActor_c()
Constructs a new object.
ACTOR_PARAM_CONFIG(Node, 0, 8)
The index into the hardcoded node configuration.
dHeapAllocator_c mAllocator
The allocator.
virtual void finalUpdate()
Code to be executed after all actors' execute operation has run.
void calcModel()
Updates the model's transformation matrix.
int mWaitTimer
The countdown timer for the Wait states.
sFStateMgr_c< daWmSandPillar_c, sStateMethodUsr_FI_c > mStateMgr
The state manager.
void createEffect()
Creates the sand effects.
m3d::mdl_c mModel
The model.
nw4r::g3d::ResAnmTexSrt mResAnmTexSrt
The texture animation resource.
virtual void processCutsceneCommand(int cutsceneCommandId, bool isFirstFrame)
Contains the actor-specific logic for processing the current world map cutscene.
float mStepAccel
The rate at which the scale step approaches mTargetScaleStep.
m3d::anmChr_c mChrAnim
The model animation.
void calcScaleStep()
Updates the movement scale step.
~daWmSandPillar_c()
Destroys the object.
virtual int create()
do method for the create operation.
m3d::anmTexSrt_c mSrtAnim
The texture animation.
virtual int execute()
do method for the execute operation.
BOOL mIsPulsing
Whether the pillar is doing a regular pulse.
void createModel()
Initializes the resources for the actor.
BOOL mHasCourseCond
Whether the actor is linked to a specific course.
float mTargetScaleStep
The target scale step.
daWmSandPillar_c()
Constructs a new object.
mVec3_c mInitialPos
The actor's initial position.
nw4r::g3d::ResFile mResFile
The resource file.
float mScaleStep
The current scale step.
virtual int draw()
do method for the draw operation.
int mRemainingPulses
The remaining pulse cycles before the pillar moves all the way to the top.
A three-dimensional floating point vector.
A wrapper for sStateMgr_c that uses sFStateFct_c and sStateIDChk_c.
#define STATE_FUNC_DECLARE(class, name)
Declares a state.
The global configuration for the actor.
float mPosY[NODE_COUNT]
The base Y coordinate for the actor.
int mPulseCount[NODE_COUNT]
The number of pulses before rising all the way to mTopScaleY.
int mTopWaitTime[NODE_COUNT]
The wait time at the top, in frames.
int mBottomWaitTime[NODE_COUNT]
The wait time at the bottom, in frames.
float mTopHeight[NODE_COUNT]
The height of the pillar when extended at the top.
float mStepMaxScale[NODE_COUNT]
The maximum scale step.
float mBottomHeight[NODE_COUNT]
The height of the pillar when resting at the bottom.
float mStepInitialScale[NODE_COUNT]
The initial scale step when moving.
float mPulseTopHeight[NODE_COUNT]
The height of the pillar when extended during a pulse.
float mStepAccel[NODE_COUNT]
The rate at which the scale step approaches mStepMaxScale.
float mPulseBottomHeight[NODE_COUNT]
The height of the pillar when resting during a pulse.