NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
dWmEnemy_c Class Reference

#include <game/bases/d_wm_enemy.hpp>

Inheritance diagram for dWmEnemy_c:
[legend]

Description

Parameter Fields

Definition at line 9 of file d_wm_enemy.hpp.

Classes

struct  JumpData_s
 
struct  unk_s
 

Public Types

typedef void(dWmEnemy_c::* ProcFunc) ()
 
- Public Types inherited from dBaseActor_c
enum  ACTOR_KIND_e {
  ACTOR_MAP_GENERIC ,
  ACTOR_MAP_DEMO ,
  ACTOR_MAP_OBJECT ,
  ACTOR_MAP_ENEMY ,
  ACTOR_MAP_PLAYER ,
  ACTOR_MAP_STOP ,
  ACTOR_UNK_6 ,
  ACTOR_MENU_PLAYER ,
  ACTOR_GENERIC
}
 An identifier that represents the actor's kind. More...
 
- Public Types inherited from fBase_c
enum  LIFECYCLE_e {
  CREATING ,
  ACTIVE ,
  DELETING
}
 The possible lifecycle states. More...
 
enum  GROUP_TYPE_e {
  OTHER ,
  SCENE ,
  ACTOR
}
 The possible group types. More...
 
enum  MAIN_STATE_e {
  CANCELED ,
  ERROR ,
  SUCCESS ,
  WAITING
}
 The possible operation results. More...
 
enum  PACK_RESULT_e {
  NOT_READY ,
  SUCCEEDED ,
  FAILED
}
 The possible operation step results. More...
 
enum  PROC_DISABLE_e {
  ROOT_DISABLE_EXECUTE = BIT_FLAG(0) ,
  DISABLE_EXECUTE = BIT_FLAG(1) ,
  ROOT_DISABLE_DRAW = BIT_FLAG(2) ,
  DISABLE_DRAW = BIT_FLAG(3)
}
 Controls if the execute and draw operations should be skipped. More...
 

Public Member Functions

virtual int create ()
 do method for the create operation.
 
virtual int execute ()
 do method for the execute operation.
 
virtual int draw ()
 do method for the draw operation.
 
virtual int doDelete ()
 do method for the delete operation.
 
virtual int GetActorType ()
 Gets the actor kind. See ACTOR_KIND_e.
 
virtual int GetIndex ()
 
virtual int GetNextIndex ()
 
virtual float GetTerritory ()
 
virtual void initWalk ()
 
virtual bool doWalk ()
 
virtual void initDemoAnger ()
 
virtual bool procDemoAnger ()
 
virtual void initDemoLose ()
 
virtual bool procDemoLose ()
 
virtual void procDemoLoseEnd ()
 
virtual void initDemoStarLose ()
 
virtual bool procDemoStarLose ()
 
virtual void initDemoBgmDance ()
 
virtual bool procDemoBgmDance ()
 
virtual mVec3_c calcBlowOffPos (float offsetX)
 
virtual mVec3_c getPointOffset (int index)
 
virtual short getWaitAngle ()
 
virtual float getWalkAnmRate ()
 
virtual void setWalkAnm (float anmRate)
 
virtual bool IsHitToWaitPlayer ()
 
virtual int getStartPoint ()
 
virtual int vfc4 (int pointNo)
 
virtual void calc ()
 
virtual void calculateEffect ()
 
virtual int getEnemyWalkSeID ()
 
virtual bool IsPlayerComing ()
 
virtual bool IsRandomWalk ()
 
virtual bool IsRandomMove ()
 
virtual short GetChangeDirRate ()
 
virtual int GetMoveRate ()
 
virtual short GetWalkWaitFrame ()
 
virtual void PostWaitWalk ()
 
virtual void updateBgmAnimRate ()
 
virtual int isWaitWalkEnd ()
 
void initializeBase (const char **names, int count, bool cyclic)
 
void initShapeAngle ()
 
bool IsExecEnable ()
 
bool IsNeedChasePlayer ()
 
mVec3_c getNextPointInfo ()
 
mVec3_c getCurrentPointInfo ()
 
void initWalk (float)
 
bool isNextThroughPoint ()
 
bool CheckIsHitToPlayer ()
 
void updatePathInfo (bool)
 
void deleteSound ()
 
void deleteEffect ()
 
bool csCommand (int id, bool b)
 
bool FUN_800f88d0 ()
 
void demoJump (const mVec3_c &pos, JumpData_s &jumpData, float scale)
 
bool isThroughPoint (int)
 
bool isDead ()
 
void ModelCalc (m3d::mdl_c *mdl, float yOffset, float shadowYOffset, float shadowScale)
 
bool IsPlayerComingCore ()
 
bool IsHitToMovePlayer ()
 
bool isAllEnemyMoveEnd ()
 
bool procDemoLoseBase (short angle)
 
void init_exec ()
 
void mode_exec ()
 
void init_DemoContinue ()
 
void mode_DemoContinue ()
 
void init_bgmDance ()
 
void mode_bgmDance ()
 
void init_lose ()
 
void mode_lose ()
 
void init_waitWalk ()
 
void mode_waitWalk ()
 
- Public Member Functions inherited from dWmDemoActor_c
virtual void setCutEndSpecific (int cutsceneId, bool param2)
 
virtual bool checkCutEnd ()
 
virtual void setCutEnd ()
 
virtual void clearCutEnd ()
 
bool isStaff ()
 
void InitJumpParam (const mVec3_c &startPos, const mVec3_c &targetPos, int numFrames, float jumpSpeed, float maxYSpeed)
 
void __initJumpParam1 (const mVec3_c &startPos, const mVec3_c &targetPos, int numFrames, float jumpSpeed, float maxYSpeed)
 
void __initJumpParam2 (const mVec3_c &startPos, const mVec3_c &targetPos, int numFrames, float jumpSpeed, float maxYSpeed)
 
void initJumpBase (mVec3_c pos, int numFrames, float jumpSpeed)
 
bool procJumpBase ()
 
void _initDemoJumpBaseCore (const mVec3_c &pos, int delay, int frames, float jumpSpeed, float startScale, float targetScale, const short &angY)
 
void _initDemoJumpBase (const mVec3_c &pos, int delay, int frames, float jumpSpeed, float startScale, float targetScale, const mVec3_c &dir)
 
bool _procDemoJumpBase ()
 
void setDirection (const mVec3_c &dir)
 
void rotDirectionY (short angle, bool is3D)
 
void rotDirectionX (short angle, bool is3D)
 
bool checkArriveTargetXYZ (const mVec3_c &startPos, const mVec3_c &targetPos)
 
bool checkArriveTargetXZ (const mVec3_c &startPos, const mVec3_c &targetPos)
 
void CreateShadowModel (const char *arc, const char *path, const char *mdlName, bool param4)
 
void CalcShadow (float yOffs, float scaleX, float scaleY, float scaleZ)
 
void CalcShadow (float yOffs, float scale)
 
void DrawShadow (bool param1)
 
float GetBgPosY (const mVec3_c &startPos, const mVec3_c &targetPos, int directionType)
 
void CsSPosSimple (int directionType, float yTarget)
 
void clearSpeedAll ()
 
void adjustHeightBase (const mVec3_c &startPos, const mVec3_c &targetPos, int directionType)
 
bool isCutscenePlaying (const int *csList, int csCount)
 
- Public Member Functions inherited from dWmActor_c
 dWmActor_c ()
 Constructs a new actor.
 
- Public Member Functions inherited from dBaseActor_c
 dBaseActor_c ()
 Constructs a new actor.
 
void calcSpeed ()
 Updates the actor's speed (3D actors). See here for details.
 
void calcSpeedXY ()
 Updates the actor's speed (2D actors). See here for details.
 
void calcSpeedX ()
 Updates the actor's X speed. See here for details.
 
void calcFallSpeed ()
 Updates the actor's falling speed. See here for details.
 
void calcSpeedY ()
 Updates the actor's Y speed. See here for details.
 
void calcSpeedF ()
 Updates the actor's forward speed. See here for details.
 
void makeMtx ()
 Generates a partial transformation matrix for the actor and stores it in mMatrix.
 
mVec3_c getCenterPos () const
 Gets the actor's centered position.
 
void posMove (mVec3_c &delta)
 Moves the actor by the given delta.
 
void posMove ()
 Moves the actor by its speed.
 
int GetProfNameActorNum (ProfileName profile)
 Counts the instances of the given actor profile.
 
- Public Member Functions inherited from dBase_c
 dBase_c ()
 Constructs a new base.
 
virtual ~dBase_c ()
 Destroys the base.
 
virtual const char * getKindString () const
 Gets the base's kind string.
 
- Public Member Functions inherited from fBase_c
 fBase_c ()
 Constructs a new base.
 
void deleteRequest ()
 Requests deletion of the base.
 
fBase_cgetConnectParent () const
 Gets the base's parent.
 
fBase_cgetConnectChild () const
 Gets the base's first child.
 
fBase_cgetConnectBrNext () const
 Gets the base's next sibling.
 
bool checkChildProcessCreateState () const
 Checks if the base has at least one child in the CREATING state.
 
- Public Member Functions inherited from cOwnerSetMg_c
 cOwnerSetMg_c ()
 Constructs a new set container.
 
 ~cOwnerSetMg_c ()
 Destroys the set.
 
void add (cOwnerSetNd_c *nd, void *owner)
 Adds a node to the set.
 
void remove (cOwnerSetNd_c *nd, void *owner)
 Removes a node from the set.
 

Static Public Attributes

static const char * smc_PathPointA []
 
static const char * smc_PathPointB []
 
static const char * smc_PathPointC []
 

Private Types

enum  PROC_TYPE_e {
  PROC_TYPE_EXEC ,
  PROC_TYPE_DEMO_CONTINUE ,
  PROC_TYPE_BGM_DANCE ,
  PROC_TYPE_LOSE ,
  PROC_TYPE_WAIT_WALK ,
  PROC_COUNT
}
 
enum  POINT_TYPE_e {
  POINT_TYPE_STOP ,
  POINT_TYPE_THROUGH
}
 

Private Member Functions

 ACTOR_PARAM_CONFIG (enemyNo, 0, 4)
 
 ACTOR_PARAM_CONFIG (startPoint, 4, 4)
 

Private Attributes

dWmEnPath_c mPath
 
mVec3_c mNextPoint
 
mVec3_c mPrevPoint
 
mAng3_c mDemoAngle
 
bool mArrivedAtTarget
 
bool mEnWalk
 
POINT_TYPE_e mNextPointType
 0 = stop point, 1 = through point
 
int mRotateTimer
 
unk_smpUnkData
 
PROC_TYPE_e mCurrProc
 
int mWalkWaitTimer
 
int mDemoContinueRelated
 
dWmBgmSync_cmpBgmSync
 
int mBgmDanceRelated
 
bool mNotAnger
 
int mSeID
 
int mEfID
 
bool mHitPlayer
 

Additional Inherited Members

- Static Public Member Functions inherited from dWmDemoActor_c
static dBaseActor_cGetChildDemoActor (dBaseActor_c *prev, dWmDemoActor_c *&next)
 
- Static Public Member Functions inherited from dBaseActor_c
static void draw2DActorOnLyt1 ()
 Calls draw2D on every actor.
 
static void draw2DActorOnLyt2 ()
 Calls draw2D_lyt2 on every actor.
 
static dBaseActor_cconstruct (ProfileName profName, unsigned long param, const mVec3_c *position, const mAng3_c *rotation)
 Creates an actor without a parent.
 
static dBaseActor_cconstruct (ProfileName profName, dBase_c *parent, unsigned long param, const mVec3_c *position, const mAng3_c *rotation)
 Creates a child actor with the given parent.
 
- Static Public Member Functions inherited from dBase_c
static dBase_csearchBaseByProfName (ProfileName profile, const dBase_c *parent)
 Searches for a base with a given profile name, optionally under a given parent.
 
static void initLoader ()
 Sets the callbacks for the scrapped relocatable profile system.
 
static dBase_ccreateBase (ProfileName profName, dBase_c *parent, unsigned long param, u8 groupType)
 Creates a child base under the given parent.
 
static dBase_ccreateRoot (ProfileName profName, unsigned long param, u8 groupType)
 Creates a root base.
 
- Static Public Member Functions inherited from fBase_c
static void * operator new (size_t)
 new operator override for all bases.
 
static void operator delete (void *)
 delete operator override for all bases.
 
static fBase_ccreateChild (ProfileName profName, fBase_c *parent, unsigned long param, u8 groupType)
 Creates a child base under the given parent.
 
static fBase_ccreateRoot (ProfileName profName, unsigned long param, u8 groupType)
 Creates a root base.
 
- Public Attributes inherited from dBaseActor_c
mMtx_c mMatrix
 The actor's partial transformation matrix. See makeMtx for details.
 
mVec3_c mPos
 The actor's position.
 
mVec3_c mLastPos
 The actor's position in the previous frame.
 
mVec3_c mPosDelta
 The actor's position delta since the previous frame.
 
mVec3_c mCenterOffs
 The offset from the position to the center of the actor (defaults to 0).
 
mVec3_c mScale
 The actor's scale (defaults to 1).
 
mVec3_c mSpeed
 The actor's speed.
 
mVec3_c mSpeedMax
 The actor's maximum speed.
 
mAng3_c mAngle
 The actor's rotation (for 2D actors).
 
mAng3_c mAngle3D
 The actor's rotation (for 3D actors).
 
float mSpeedF
 The actor's horizontal speed.
 
float mMaxSpeedF
 The actor's maximum horizontal speed.
 
float mAccelY
 The actor's vertical acceleration.
 
float mMaxFallSpeed
 The actor's maximum fall speed.
 
float mAccelF
 The actor's horizontal acceleration.
 
u32 mActorProperties
 The actor's properties. See fProfile::fActorProfile_c::mActorProperties.
 
bool mVisible
 Whether the actor should be visible or not. Defaults to true .
 
- Public Attributes inherited from fBase_c
fBaseID_e mUniqueID
 The base's unique identifier.
 
u32 mParam
 A bitfield that configures the base's behaviour. Its usage varies from profile to profile.
 
ProfileName mProfName
 The base's profile name.
 
- Protected Member Functions inherited from dWmActor_c
virtual int preCreate ()
 pre method for the create operation.
 
virtual void postCreate (fBase_c::MAIN_STATE_e status)
 post method for the create operation.
 
virtual int preDelete ()
 pre method for the delete operation.
 
virtual void postDelete (fBase_c::MAIN_STATE_e status)
 post method for the delete operation.
 
virtual int preExecute ()
 pre method for the execute operation.
 
virtual void postExecute (fBase_c::MAIN_STATE_e status)
 post method for the execute operation.
 
virtual int preDraw ()
 pre method for the draw operation.
 
virtual void postDraw (fBase_c::MAIN_STATE_e status)
 post method for the draw operation.
 
virtual ~dWmActor_c ()
 Destroys the actor.
 
- Protected Member Functions inherited from dBaseActor_c
virtual ~dBaseActor_c ()
 Destroys the actor.
 
virtual void draw2D ()
 Alternate drawing function used to draw 3D models in front of 2D graphics (first draw pass).
 
virtual void draw2D_lyt2 ()
 Alternate drawing function used to draw 3D models in front of 2D graphics (second draw pass).
 
virtual void finalUpdate ()
 Code to be executed after all actors' execute operation has run.
 
- Protected Member Functions inherited from fBase_c
bool isProcControlFlag (u8 flag) const
 Checks if a flag is set in mProcControl.
 
void setProcControlFlag (u8 flag)
 Sets a flag in mProcControl.
 
void clearProcControlFlag (u8 flag)
 Clears a flag in mProcControl.
 
virtual void deleteReady ()
 Informs the base that it's about to be deleted.
 
virtual bool entryFrmHeap (unsigned long size, EGG::Heap *parentHeap)
 Creates a heap of the given size for the base.
 
virtual bool entryFrmHeapNonAdjust (unsigned long size, EGG::Heap *parentHeap)
 Creates a heap of the given size for the base.
 
virtual bool createHeap ()
 [Does nothing].
 
virtual ~fBase_c ()
 Destroys the base.
 
- Static Protected Member Functions inherited from dWmActor_c
static dWmActor_cconstruct (ProfileName profName, unsigned long param, const mVec3_c *position, const mAng3_c *rotation)
 Creates a world map actor without a parent. See dBaseActor_c::construct.
 
static dWmActor_cconstruct (ProfileName profName, dBase_c *base, unsigned long param, const mVec3_c *position, const mAng3_c *rotation)
 Creates a child world map actor with the given parent. See dBaseActor_c::construct.
 
static void setSoftLight_Map (m3d::bmdl_c &mdl)
 Sets the soft light effect for map actors.
 
static void setSoftLight_MapObj (m3d::bmdl_c &mdl)
 Sets the soft light effect for map objects.
 
static void setSoftLight_Enemy (m3d::bmdl_c &mdl)
 Sets the soft light effect for enemies.
 
static void setSoftLight_Boss (m3d::bmdl_c &mdl)
 Sets the soft light effect for bosses.
 
- Protected Attributes inherited from dWmDemoActor_c
bool m_00
 
bool mIsCutEnd
 
mHeapAllocator_c mHeapAllocator
 
m3d::smdl_c mModel
 
dWmSVMdl_cmSvMdl
 
mVec3_c mTargetPos
 
float mScaleCurr
 
float mScaleDelta
 
float mScaleTarget
 
int mScaleDelay
 
- Protected Attributes inherited from dBase_c
const char * mpKindString
 The base's kind string.
 
const char * mpNameString
 The base's profile name string.
 
- Protected Attributes inherited from fBase_c
u8 mLifecycleState
 The base's lifecycle state. Value is a LIFECYCLE_e.
 
bool mDeleteRequested
 If deletion of the base was requested, but the delete operation has not been scheduled yet.
 
bool mDeferExecute
 If the create operation was completed, but scheduling the execute and draw operations isn't possible at this time.
 
bool mDeferRetryCreate
 If the create operation has not been completed, and rescheduling it isn't possible at this time.
 
u8 mGroupType
 The base's group type. Value is a GROUP_TYPE_e.
 
u8 mProcControl
 The operations to be skipped. Value is a PROC_DISABLE_e.
 
fManager_c mMng
 The base's process manager.
 
fBaHelper_cmpUnusedHelper
 See Unused Content.
 
fLiMgBa_c mUnusedList
 See Unused Content.
 
EGG::FrmHeapmHeap
 The base's dedicated heap.
 
- Static Protected Attributes inherited from fBase_c
static int(* sLoadAsyncCallback )()
 See Unused Content.
 
static void(* sUnloadCallback )()
 See Unused Content.
 

Member Typedef Documentation

◆ ProcFunc

typedef void(dWmEnemy_c::* dWmEnemy_c::ProcFunc) ()

Definition at line 98 of file d_wm_enemy.hpp.

Member Enumeration Documentation

◆ PROC_TYPE_e

enum dWmEnemy_c::PROC_TYPE_e
private

Definition at line 108 of file d_wm_enemy.hpp.

◆ POINT_TYPE_e

enum dWmEnemy_c::POINT_TYPE_e
private

Definition at line 117 of file d_wm_enemy.hpp.

Constructor & Destructor Documentation

◆ dWmEnemy_c()

dWmEnemy_c::dWmEnemy_c ( )
inline

Definition at line 20 of file d_wm_enemy.hpp.

◆ ~dWmEnemy_c()

dWmEnemy_c::~dWmEnemy_c ( )

Definition at line 54 of file d_wm_enemy.cpp.

Member Function Documentation

◆ create()

virtual int dWmEnemy_c::create ( )
inlinevirtual

do method for the create operation.

Returns
A PACK_RESULT_e value.

Reimplemented from dWmDemoActor_c.

Definition at line 23 of file d_wm_enemy.hpp.

◆ execute()

int dWmEnemy_c::execute ( )
virtual

do method for the execute operation.

Returns
A PACK_RESULT_e value.

Implements dWmDemoActor_c.

Definition at line 102 of file d_wm_enemy.cpp.

◆ draw()

virtual int dWmEnemy_c::draw ( )
inlinevirtual

do method for the draw operation.

Returns
A PACK_RESULT_e value.

Reimplemented from dWmDemoActor_c.

Definition at line 25 of file d_wm_enemy.hpp.

◆ doDelete()

virtual int dWmEnemy_c::doDelete ( )
inlinevirtual

do method for the delete operation.

This method was renamed due to conflict with the delete C++ keyword.

Returns
A PACK_RESULT_e value.

Reimplemented from dWmDemoActor_c.

Definition at line 26 of file d_wm_enemy.hpp.

◆ GetActorType()

virtual int dWmEnemy_c::GetActorType ( )
inlinevirtual

Gets the actor kind. See ACTOR_KIND_e.

Reimplemented from dWmDemoActor_c.

Definition at line 27 of file d_wm_enemy.hpp.

◆ GetIndex()

virtual int dWmEnemy_c::GetIndex ( )
inlinevirtual

Definition at line 29 of file d_wm_enemy.hpp.

◆ GetNextIndex()

virtual int dWmEnemy_c::GetNextIndex ( )
inlinevirtual

Definition at line 30 of file d_wm_enemy.hpp.

◆ GetTerritory()

virtual float dWmEnemy_c::GetTerritory ( )
inlinevirtual

Definition at line 31 of file d_wm_enemy.hpp.

◆ initWalk() [1/2]

virtual void dWmEnemy_c::initWalk ( )
inlinevirtual

Definition at line 32 of file d_wm_enemy.hpp.

◆ doWalk()

bool dWmEnemy_c::doWalk ( )
virtual

Definition at line 246 of file d_wm_enemy.cpp.

◆ initDemoAnger()

void dWmEnemy_c::initDemoAnger ( )
virtual

Definition at line 399 of file d_wm_enemy.cpp.

◆ procDemoAnger()

bool dWmEnemy_c::procDemoAnger ( )
virtual

Definition at line 406 of file d_wm_enemy.cpp.

◆ initDemoLose()

void dWmEnemy_c::initDemoLose ( )
virtual

Definition at line 422 of file d_wm_enemy.cpp.

◆ procDemoLose()

bool dWmEnemy_c::procDemoLose ( )
virtual

Definition at line 432 of file d_wm_enemy.cpp.

◆ procDemoLoseEnd()

void dWmEnemy_c::procDemoLoseEnd ( )
virtual

Definition at line 436 of file d_wm_enemy.cpp.

◆ initDemoStarLose()

void dWmEnemy_c::initDemoStarLose ( )
virtual

Definition at line 150 of file d_wm_enemy.cpp.

◆ procDemoStarLose()

bool dWmEnemy_c::procDemoStarLose ( )
virtual

Definition at line 160 of file d_wm_enemy.cpp.

◆ initDemoBgmDance()

void dWmEnemy_c::initDemoBgmDance ( )
virtual

Definition at line 170 of file d_wm_enemy.cpp.

◆ procDemoBgmDance()

bool dWmEnemy_c::procDemoBgmDance ( )
virtual

Definition at line 178 of file d_wm_enemy.cpp.

◆ calcBlowOffPos()

virtual mVec3_c dWmEnemy_c::calcBlowOffPos ( float offsetX)
inlinevirtual

Definition at line 43 of file d_wm_enemy.hpp.

◆ getPointOffset()

mVec3_c dWmEnemy_c::getPointOffset ( int index)
virtual

Definition at line 98 of file d_wm_enemy.cpp.

◆ getWaitAngle()

virtual short dWmEnemy_c::getWaitAngle ( )
inlinevirtual

Definition at line 45 of file d_wm_enemy.hpp.

◆ getWalkAnmRate()

virtual float dWmEnemy_c::getWalkAnmRate ( )
inlinevirtual

Definition at line 46 of file d_wm_enemy.hpp.

◆ setWalkAnm()

virtual void dWmEnemy_c::setWalkAnm ( float anmRate)
inlinevirtual

Definition at line 47 of file d_wm_enemy.hpp.

◆ IsHitToWaitPlayer()

bool dWmEnemy_c::IsHitToWaitPlayer ( )
virtual

Definition at line 573 of file d_wm_enemy.cpp.

◆ getStartPoint()

int dWmEnemy_c::getStartPoint ( )
virtual

Definition at line 94 of file d_wm_enemy.cpp.

◆ vfc4()

virtual int dWmEnemy_c::vfc4 ( int pointNo)
inlinevirtual

Definition at line 50 of file d_wm_enemy.hpp.

◆ calc()

void dWmEnemy_c::calc ( )
virtual

Definition at line 129 of file d_wm_enemy.cpp.

◆ calculateEffect()

void dWmEnemy_c::calculateEffect ( )
virtual

Definition at line 127 of file d_wm_enemy.cpp.

◆ getEnemyWalkSeID()

int dWmEnemy_c::getEnemyWalkSeID ( )
virtual

Definition at line 516 of file d_wm_enemy.cpp.

◆ IsPlayerComing()

virtual bool dWmEnemy_c::IsPlayerComing ( )
inlinevirtual

Definition at line 54 of file d_wm_enemy.hpp.

◆ IsRandomWalk()

bool dWmEnemy_c::IsRandomWalk ( )
virtual

Definition at line 559 of file d_wm_enemy.cpp.

◆ IsRandomMove()

virtual bool dWmEnemy_c::IsRandomMove ( )
inlinevirtual

Definition at line 56 of file d_wm_enemy.hpp.

◆ GetChangeDirRate()

virtual short dWmEnemy_c::GetChangeDirRate ( )
inlinevirtual

Definition at line 57 of file d_wm_enemy.hpp.

◆ GetMoveRate()

virtual int dWmEnemy_c::GetMoveRate ( )
inlinevirtual

Definition at line 58 of file d_wm_enemy.hpp.

◆ GetWalkWaitFrame()

virtual short dWmEnemy_c::GetWalkWaitFrame ( )
inlinevirtual

Definition at line 59 of file d_wm_enemy.hpp.

◆ PostWaitWalk()

virtual void dWmEnemy_c::PostWaitWalk ( )
inlinevirtual

Definition at line 60 of file d_wm_enemy.hpp.

◆ updateBgmAnimRate()

void dWmEnemy_c::updateBgmAnimRate ( )
virtual

Definition at line 125 of file d_wm_enemy.cpp.

◆ isWaitWalkEnd()

virtual int dWmEnemy_c::isWaitWalkEnd ( )
inlinevirtual

Definition at line 62 of file d_wm_enemy.hpp.

◆ initializeBase()

void dWmEnemy_c::initializeBase ( const char ** names,
int count,
bool cyclic )

Definition at line 60 of file d_wm_enemy.cpp.

◆ initShapeAngle()

void dWmEnemy_c::initShapeAngle ( )

Definition at line 315 of file d_wm_enemy.cpp.

◆ IsExecEnable()

bool dWmEnemy_c::IsExecEnable ( )

Definition at line 531 of file d_wm_enemy.cpp.

◆ IsNeedChasePlayer()

bool dWmEnemy_c::IsNeedChasePlayer ( )

Definition at line 551 of file d_wm_enemy.cpp.

◆ getNextPointInfo()

mVec3_c dWmEnemy_c::getNextPointInfo ( )

Definition at line 300 of file d_wm_enemy.cpp.

◆ getCurrentPointInfo()

mVec3_c dWmEnemy_c::getCurrentPointInfo ( )

Definition at line 308 of file d_wm_enemy.cpp.

◆ initWalk() [2/2]

void dWmEnemy_c::initWalk ( float f)

Definition at line 231 of file d_wm_enemy.cpp.

◆ isNextThroughPoint()

bool dWmEnemy_c::isNextThroughPoint ( )

Definition at line 456 of file d_wm_enemy.cpp.

◆ CheckIsHitToPlayer()

bool dWmEnemy_c::CheckIsHitToPlayer ( )

Definition at line 615 of file d_wm_enemy.cpp.

◆ updatePathInfo()

void dWmEnemy_c::updatePathInfo ( bool b)

Definition at line 486 of file d_wm_enemy.cpp.

◆ deleteSound()

void dWmEnemy_c::deleteSound ( )

Definition at line 500 of file d_wm_enemy.cpp.

◆ deleteEffect()

void dWmEnemy_c::deleteEffect ( )

Definition at line 508 of file d_wm_enemy.cpp.

◆ csCommand()

bool dWmEnemy_c::csCommand ( int id,
bool b )

Definition at line 321 of file d_wm_enemy.cpp.

◆ FUN_800f88d0()

bool dWmEnemy_c::FUN_800f88d0 ( )

(isMainCast?)

Definition at line 465 of file d_wm_enemy.cpp.

◆ demoJump()

void dWmEnemy_c::demoJump ( const mVec3_c & pos,
JumpData_s & jumpData,
float scale )

Definition at line 424 of file d_wm_enemy.cpp.

◆ isThroughPoint()

bool dWmEnemy_c::isThroughPoint ( int idx)

Definition at line 460 of file d_wm_enemy.cpp.

◆ isDead()

bool dWmEnemy_c::isDead ( )

Definition at line 469 of file d_wm_enemy.cpp.

◆ ModelCalc()

void dWmEnemy_c::ModelCalc ( m3d::mdl_c * mdl,
float yOffset,
float shadowYOffset,
float shadowScale )

Definition at line 473 of file d_wm_enemy.cpp.

◆ IsPlayerComingCore()

bool dWmEnemy_c::IsPlayerComingCore ( )

Definition at line 538 of file d_wm_enemy.cpp.

◆ IsHitToMovePlayer()

bool dWmEnemy_c::IsHitToMovePlayer ( )

Definition at line 594 of file d_wm_enemy.cpp.

◆ isAllEnemyMoveEnd()

bool dWmEnemy_c::isAllEnemyMoveEnd ( void )

Definition at line 643 of file d_wm_enemy.cpp.

◆ procDemoLoseBase()

bool dWmEnemy_c::procDemoLoseBase ( short angle)

Definition at line 443 of file d_wm_enemy.cpp.

◆ init_exec()

void dWmEnemy_c::init_exec ( )

Definition at line 131 of file d_wm_enemy.cpp.

◆ mode_exec()

void dWmEnemy_c::mode_exec ( )

Definition at line 135 of file d_wm_enemy.cpp.

◆ init_DemoContinue()

void dWmEnemy_c::init_DemoContinue ( )

Definition at line 182 of file d_wm_enemy.cpp.

◆ mode_DemoContinue()

void dWmEnemy_c::mode_DemoContinue ( )

Definition at line 188 of file d_wm_enemy.cpp.

◆ init_bgmDance()

void dWmEnemy_c::init_bgmDance ( )

Definition at line 164 of file d_wm_enemy.cpp.

◆ mode_bgmDance()

void dWmEnemy_c::mode_bgmDance ( )

Definition at line 172 of file d_wm_enemy.cpp.

◆ init_lose()

void dWmEnemy_c::init_lose ( )

Definition at line 145 of file d_wm_enemy.cpp.

◆ mode_lose()

void dWmEnemy_c::mode_lose ( )

Definition at line 154 of file d_wm_enemy.cpp.

◆ init_waitWalk()

void dWmEnemy_c::init_waitWalk ( )

Definition at line 192 of file d_wm_enemy.cpp.

◆ mode_waitWalk()

void dWmEnemy_c::mode_waitWalk ( )

Definition at line 197 of file d_wm_enemy.cpp.

Member Data Documentation

◆ mPath

dWmEnPath_c dWmEnemy_c::mPath
private

Definition at line 122 of file d_wm_enemy.hpp.

◆ mNextPoint

mVec3_c dWmEnemy_c::mNextPoint
private

Definition at line 123 of file d_wm_enemy.hpp.

◆ mPrevPoint

mVec3_c dWmEnemy_c::mPrevPoint
private

Definition at line 124 of file d_wm_enemy.hpp.

◆ mDemoAngle

mAng3_c dWmEnemy_c::mDemoAngle
private

Definition at line 125 of file d_wm_enemy.hpp.

◆ mArrivedAtTarget

bool dWmEnemy_c::mArrivedAtTarget
private

Definition at line 126 of file d_wm_enemy.hpp.

◆ mEnWalk

bool dWmEnemy_c::mEnWalk
private

Definition at line 127 of file d_wm_enemy.hpp.

◆ mNextPointType

POINT_TYPE_e dWmEnemy_c::mNextPointType
private

0 = stop point, 1 = through point

Definition at line 128 of file d_wm_enemy.hpp.

◆ mRotateTimer

int dWmEnemy_c::mRotateTimer
private

Definition at line 129 of file d_wm_enemy.hpp.

◆ mpUnkData

unk_s* dWmEnemy_c::mpUnkData
private

Definition at line 130 of file d_wm_enemy.hpp.

◆ mCurrProc

PROC_TYPE_e dWmEnemy_c::mCurrProc
private

Definition at line 131 of file d_wm_enemy.hpp.

◆ mWalkWaitTimer

int dWmEnemy_c::mWalkWaitTimer
private

Definition at line 132 of file d_wm_enemy.hpp.

◆ mDemoContinueRelated

int dWmEnemy_c::mDemoContinueRelated
private

Definition at line 133 of file d_wm_enemy.hpp.

◆ mpBgmSync

dWmBgmSync_c* dWmEnemy_c::mpBgmSync
private

Definition at line 134 of file d_wm_enemy.hpp.

◆ mBgmDanceRelated

int dWmEnemy_c::mBgmDanceRelated
private

Definition at line 135 of file d_wm_enemy.hpp.

◆ mNotAnger

bool dWmEnemy_c::mNotAnger
private

Definition at line 136 of file d_wm_enemy.hpp.

◆ mSeID

int dWmEnemy_c::mSeID
private

Definition at line 137 of file d_wm_enemy.hpp.

◆ mEfID

int dWmEnemy_c::mEfID
private

Definition at line 138 of file d_wm_enemy.hpp.

◆ mHitPlayer

bool dWmEnemy_c::mHitPlayer
private

Definition at line 139 of file d_wm_enemy.hpp.

◆ smc_PathPointA

const char * dWmEnemy_c::smc_PathPointA
static
Initial value:
= {
"Fa00", "Fa01", "Fa02", "Fa03", "Fa04",
"Fa05", "Fa06", "Fa07", "Fa08"
}

Definition at line 12 of file d_wm_enemy.hpp.

◆ smc_PathPointB

const char * dWmEnemy_c::smc_PathPointB
static
Initial value:
= {
"Fb00", "Fb01", "Fb02", "Fb03", "Fb04",
"Fb05", "Fb06", "Fb07", "Fb08"
}

Definition at line 16 of file d_wm_enemy.hpp.

◆ smc_PathPointC

const char * dWmEnemy_c::smc_PathPointC
static
Initial value:
= {
"Fc00", "Fc01", "Fc02", "Fc03", "Fc04",
"Fc05", "Fc06", "Fc07", "Fc08"
}

Definition at line 20 of file d_wm_enemy.hpp.