NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
Inheritance diagram for daPlBase_c:
[legend]

Description

Definition at line 18 of file d_a_player_base.hpp.

Public Types

enum  DamageType_e {
  DAMAGE_NONE = 0 ,
  DAMAGE_1 ,
  DAMAGE_2 ,
  DAMAGE_3 ,
  DAMAGE_4 ,
  DAMAGE_5 ,
  DAMAGE_6 ,
  DAMAGE_7 ,
  DAMAGE_8 ,
  DAMAGE_9 ,
  DAMAGE_A ,
  DAMAGE_B ,
  DAMAGE_C
}
enum  DokanDir_e {
  DOKAN_U ,
  DOKAN_D ,
  DOKAN_L ,
  DOKAN_R ,
  DOKAN_ROLL
}
enum  StarSet_e
enum  AnmBlend_e {
  BLEND_0 ,
  BLEND_1
}
Public Types inherited from dActor_c
enum  EAT_POINTS_e {
  EAT_POINTS_200 ,
  EAT_POINTS_1000 ,
  EAT_POINTS_NONE
}
 The score awarded when the actor is eaten by Yoshi. More...
enum  EAT_STATE_e {
  EAT_STATE_NONE ,
  EAT_STATE_EATING ,
  EAT_STATE_EATEN ,
  EAT_STATE_SPIT ,
  EAT_STATE_SPAT
}
 The possible actor eat states. More...
enum  EAT_BEHAVIOR_e {
  EAT_TYPE_NONE ,
  EAT_TYPE_EAT ,
  EAT_TYPE_EAT_PERMANENT ,
  EAT_TYPE_UNK3 ,
  EAT_TYPE_FIREBALL ,
  EAT_TYPE_ICEBALL
}
 The possible actor behaviors when eaten by Yoshi. More...
enum  STAGE_ACTOR_KIND_e {
  STAGE_ACTOR_GENERIC ,
  STAGE_ACTOR_PLAYER ,
  STAGE_ACTOR_YOSHI ,
  STAGE_ACTOR_ENEMY
}
 The possible stage actor kinds. More...
enum  CARRY_ACTION_e {
  CARRY_RELEASE = BIT_FLAG(0) ,
  CARRY_THROW = BIT_FLAG(1)
}
 The possible carry actions. More...
enum  BG_COLL_FLAG_e {
  COLL_NONE = BIT_FLAG(-1) ,
  COLL_HEAD = BIT_FLAG(0) ,
  COLL_WALL_L = BIT_FLAG(1) ,
  COLL_WALL_R = BIT_FLAG(2) ,
  COLL_FOOT = BIT_FLAG(3)
}
 The collision directions that an actor can respond to. More...
enum  ACTOR_SPAWN_FLAG_e {
  ACTOR_SPAWNED = BIT_FLAG(0) ,
  ACTOR_NO_RESPAWN = BIT_FLAG(3)
}
 Information related to actor spawning. More...
enum  SCREEN_OUT_e {
  SKIP_NONE = BIT_FLAG(-1) ,
  SKIP_ACTOR_DELETE = BIT_FLAG(1) ,
  SKIP_SCREEN_CHECK = BIT_FLAG(2) ,
  SKIP_RIDE_CHECK = BIT_FLAG(3)
}
 Flags used to control out of screen checks. More...
typedef dAcPy_c *(* searchNearPlayerFunc) (mVec2_c &delta, const mVec2_c &pos)
 Gets the closest player to the given position and its distance.
typedef bool(* getTrgToSrcDirFunc) (float trgX, float srcX)
 Gets the direction the target position is in, from the source position's viewpoint.
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 preExecute ()
 pre method for the execute operation.
virtual int execute ()
 do method for the execute operation.
virtual void postExecute (fBase_c::MAIN_STATE_e status)
 post method for the execute operation.
virtual int doDelete ()
 do method for the delete operation.
virtual int preDraw ()
 pre method for the draw operation.
virtual int draw ()
 do method for the draw operation.
virtual void executeMain ()
virtual void executeLastPlayer ()
virtual void executeLastAll ()
virtual bool isItemKinopio ()
virtual void setPowerup (PLAYER_POWERUP_e, int)
virtual u8 getTallType (s8)
virtual void * getHeadBgPointData ()
virtual void * getWallBgPointData ()
virtual void * getFootBgPointData ()
virtual float getStandHeadBgPointY ()
virtual void checkBgCrossSub ()
virtual void postBgCross ()
virtual float getSandSinkRate ()
virtual void setReductionScale ()
virtual void initStampReduction ()
virtual void calcJumpDaiReductionScale (int, int)
virtual void setReductionBoyon ()
virtual bool setPressBgDamage (int, int)
virtual bool setBalloonInDispOut (int)
virtual bool isChange ()
virtual void changeNextScene (int)
virtual bool isEnableDokanInStatus (void)
virtual bool setHideNotGoalPlayer ()
virtual int vf130 (float f, mVec2_c *v, int param3)
virtual bool setDemoCannonWarp (int, short, short)
virtual void initialDokanUnder ()
virtual void initialDokanUper ()
virtual void initialDokanRight ()
virtual void initialDokanLeft ()
virtual void initialDokanUnderM ()
virtual void initialDokanUperM ()
virtual void initialDokanRightM ()
virtual void initialDokanLeftM ()
virtual void initialDokanDepth ()
virtual void initialDoor ()
virtual void initialFall ()
virtual void initialVine ()
virtual void initialJumpRight ()
virtual void initialJumpLeft ()
virtual void initialHipAttack ()
virtual void initialSlip ()
virtual void initialSwim ()
virtual void initialBlockJump ()
virtual void initialBlockJumpBelow ()
virtual void initialTorideBoss ()
virtual void initialNormal ()
virtual void setCreateAction (int)
virtual bool setTimeOverDemo ()
virtual void setFallDownDemo ()
virtual bool setDokanIn (DokanDir_e dir)
virtual void initDemoOutDokan ()
virtual bool vf284 (int)
virtual void initDemoGoalBase ()
virtual void executeDemoGoal_Run ()
virtual void initializeDemoControl ()
virtual void changeState (const sStateIDIf_c &, void *)
virtual bool isWaitFrameCountMax ()
virtual bool checkWalkNextAction ()
virtual void setWaitActionAnm (AnmBlend_e)
virtual void setWalkActionAnm (AnmBlend_e)
virtual void walkActionInit_Wait (AnmBlend_e)
virtual void walkAction_Wait ()
virtual void walkActionInit_Move (AnmBlend_e)
virtual void walkAction_Move ()
virtual bool checkCrouch ()
virtual bool setCancelCrouch ()
virtual void setSlipAction ()
virtual void slipActionMove (int)
virtual void setFallAction ()
virtual void setHipAttack_AttackStart ()
virtual void releaseFunsuiAction ()
virtual float getCloudOffsetY ()
virtual bool setRideJrCrown (const dActor_c *)
virtual bool isRideJrCrownOwn (const dActor_c *)
virtual void setRideJrCrownMtx (const mMtx_c *)
virtual void setRideJrCrownAnm (int)
virtual float * getHeadTopPosP ()
virtual float * getGravityData ()
virtual bool isCarry () const
virtual bool isLiftUp ()
virtual bool isLiftUpExceptMame ()
virtual int isStar () const
virtual void setStar (StarSet_e, int)
virtual void endStar ()
virtual void setVirusStar (daPlBase_c *)
virtual void clearStarCount ()
virtual s8 getStarCount () const
virtual s8 calcStarCount (int)
virtual bool isNoDamage ()
virtual bool setDamage (dActor_c *, DamageType_e)
virtual bool setForcedDamage (dActor_c *, DamageType_e)
virtual u32 vf3fc (float, float, int, int, int)
virtual u32 vf400 (float, float, int, int, int)
virtual bool setWaitJump (float)
virtual bool setHipAttackOnEnemy (mVec3_c *)
virtual void clearJumpActionInfo (int)
virtual bool setSwimSpeed (float, float)
virtual void setLandSE ()
virtual void set1UpKinokoEffect ()
virtual void setFlagGetEffect ()
virtual void setHipAttackEffect ()
virtual void setZPosition ()
virtual void setZPosition (float)
virtual void setZPositionDirect (float)
virtual void offZPosSetNone ()
virtual void vf434 (int, int)
virtual void vf438 (int, int)
virtual void startQuakeShock (dQuake_c::TYPE_SHOCK_e)
virtual void startPatternRumble (const char *pattern)
virtual short getMukiAngle (u8 direction)
virtual int turnAngle ()
virtual void maxFallSpeedSet ()
virtual bool setDamage2 (dActor_c *, daPlBase_c::DamageType_e)
bool isMameAction ()
mVec3_c getAnkleCenterPos ()
bool isStatus (int key)
float getAnkleCenterX ()
float getAnkleCenterY ()
int getTreadCount ()
daPlModel_cgetModel ()
Public Member Functions inherited from dActor_c
 dActor_c ()
 Constructs a new actor.
 ~dActor_c ()
 Destroys the actor.
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 void postDraw (fBase_c::MAIN_STATE_e status)
 post method for the draw operation.
virtual const char * getKindString () const
 Gets the base's kind string.
virtual bool ActorDrawCullCheck ()
 Checks if the actor is out of view.
virtual void block_hit_init ()
 Callback for when a block directly beneath the actor is hit.
virtual bool vf68 (dBg_ctr_c *collider)
 Unknown, related to collision.
virtual s8 * getPlrNo ()
 Gets the player number associated with the actor. See mPlayerNo.
virtual mVec2_c getLookatPos () const
 Gets the position players look to when focused on the actor.
virtual bool isSpinLiftUpEnable ()
 Returns whether the actor can be carried.
virtual void setSpinLiftUpActor (dActor_c *carryingActor)
 Callback for when the actor is picked up by another actor.
virtual void setCarryFall (dActor_c *carryingActor, int collisionDelay)
 Callback for when the actor is dropped by the carrying actor.
virtual void setEatTongue (dActor_c *eatingActor)
 Callback for when the actor is targeted by Yoshi's tongue.
virtual void setEatTongueOff (dActor_c *eatingActor)
 Callback for when the eating action is canceled.
virtual void setEatMouth (dActor_c *eatingActor)
 Callback for when the actor is being eaten.
virtual bool setEatSpitOut (dActor_c *eatingActor)
 Callback for when the actor is about to be spat out.
virtual bool setEatGlupDown (dActor_c *eatingActor)
 Callback for when the actor is about to be fully swallowed.
virtual void eatMove (dActor_c *eatingActor)
 Updates the actor's position during eating actions.
virtual void removeCc ()
 Disables the actor's collision.
virtual void reviveCc ()
 Enables the actor's collision.
virtual void setAfterEatScale ()
 Restores the actor's scale once spat out.
virtual void calcSpitOutPos (dActor_c *eatingActor)
 Calculates the position where the actor will be spat out.
virtual float calcEatScaleRate (dActor_c *eatingActor)
 Computes the scaling rate during eating.
virtual void calcEatInScale (dActor_c *eatingActor)
 Adjusts the actor's scale while being eaten.
virtual void allEnemyDeathEffSet ()
 Spawns the visual effects for when all players reach the flagpole and all enemies are cleared.
virtual void vfb4 ()
virtual void funsuiMoveX ()
virtual void cancelFunsuiActUpper ()
virtual void cancelFunsuiActSide (int)
virtual void cancelFunsuiActVanish ()
virtual void waterSplashEffect (const mVec3_c &pos, float size)
 Generates a water splash effect.
virtual void yoganSplashEffect (const mVec3_c &pos, float size)
 Generates a lava splash effect.
virtual void poisonSplashEffect (const mVec3_c &pos, float size)
 Generates a poison water splash effect.
bool checkAreaNo ()
 Checks if at least one player is in the same zone as the actor.
void deleteActor (u8 deleteForever)
 Deletes the actor and optionally disables respawn.
bool areaCullCheck (const mVec3_c &pos, const sRangeDataF &bound, u8 areaID) const
 Checks if the actor should be culled due to zone limits.
bool ActorScrOutCheck (u16 flags)
 Checks if the actor is out of gameplay and optionally deletes it.
bool HasamareBgCheck ()
 Returns whether the actor is colliding with any enabled collision sides.
bool carryFukidashiCheck (int fukidashiAction, mVec2_c fukidashiTriggerSize)
 Checks if the prompt for the given action should be displayed for each player.
dAcPy_csearchCarryFukidashiPlayer (int fukidashiAction)
 Searches the closest player who has not yet performed the given action.
void carryFukidashiCancel (int fukidashiAction, int playerId)
 Hides the given action prompt for all players.
void killActor (s8 playerId, int noScore)
 Kills the actor and optionally awards points to one or all players.
void slideComboSE (int multiplier, bool shortCombo)
 Plays the combo kill sound effect.
void clrComboCnt ()
 Clears the actor's combo counter.
bool checkCarried (int *playerNum)
 Returns whether the actor is being carried by a player.
dAcPy_csearchNearPlayer (mVec2_c &delta)
 Gets the closest player to the actor and its distance.
void setKind (u8 kind)
 Sets the actor's kind. See STAGE_ACTOR_KIND_e.
sRangeDataF getDestroyBound ()
void setDefaultMaxBound ()
u8 getKindMask ()
Public Member Functions inherited from dBaseActor_c
 dBaseActor_c ()
 Constructs a new actor.
virtual int GetActorType ()
 Gets the actor kind. See ACTOR_KIND_e.
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.
float getCenterX () const
float getCenterY () const
float getCenterZ () const
Public Member Functions inherited from dBase_c
 dBase_c ()
 Constructs a new base.
virtual ~dBase_c ()
 Destroys the base.
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.

Public Attributes

char mPad1 [0xc9e]
float mSmallScoreOffset
char mPad2 [0x1]
u8 mAmiLayer
char mPad3 [0x4a]
s8 mTreadCount
s8 m_ced
s8 m_cee
char mPad4 [0x52]
u32 mFlags
u8 mPad5 [0x3b4]
Public Attributes inherited from dActor_c
u8 m_00
 Seems to be a player bit flag.
u32 mCarryFukidashiPlayerNo
 The player for whom an action prompt related to the actor is being displayed. -1 if no players meet this criteria.
u32 mCarryingFlags
 The actor's carry actions. See CARRY_ACTION_e.
u8 mThrowDirection
 The actor's direction when thrown or dropped after carrying.
int mComboMultiplier
 The current combo multiplier obtained by the actor by colliding with other actors.
u8 m_13
u32 m_17
float m_1b
u32 m_1f
dCc_c mCc
 The actor-to-actor collision sensor.
dBc_c mBc
 The actor-to-tile collision sensor.
dRc_c mRc
 The actor's ride surface manager.
mVec2_c m_1eb
mVec2_c mVisibleAreaSize
 The size of the area inside which the actor is visible.
mVec2_c mVisibleAreaOffset
 The offset applied to the area size.
sRangeDataF mMaxBound
sRangeDataF mDestroyBound
u8 mDirection
 The actor's facing direction.
u8 mAreaNo
 The actor's zone ID.
u8 mBgCollFlags
 The collision directions that the actor can respond to.
u8 * mpSpawnFlags
 The spawn flags for the actor. See ACTOR_SPAWN_FLAG_e.
u16 * mpDeleteVal
u16 mEventNums
 The event IDs the actor is tracking.
u64 mEventMask
 The event mask, generated from mEventNums.
u32 m_23b
u16 mSpriteSpawnFlags
 The spawn flags from the sprite data entry.
bool mBlockHit
 Whether a block below the actor was hit.
u32 mEatenByID
 The unique identifier of the eating actor.
u8 mEatState
 The actor's eat state. Value is a EAT_STATE_e.
u8 mEatBehaviour
 The actor's eat behaviour. Value is a EAT_BEHAVIOR_e.
mVec3_c mPreEatScale
 The actor's scale before being eaten.
EAT_POINTS_e mEatPoints
 The score awarded when the actor is eaten by Yoshi.
int mAttentionMode
u32 mAttentionFlags
dPropelParts_c * mPropelParts
 The actor's propeller effect manager.
u8 mKind
 The actor's kind. Value is a STAGE_ACTOR_KIND_e.
s8 mPlayerNo
 The player associated with the actor, -1 if not associated to any player.
u8 mExecStopMask
 The mask required to disable the execute operation for the actor.
u8 mLayer
 The actor's layer.
bool mNoRespawn
 Whether the actor should not respawn after being deleted.
u8 mAmiLayer
 The actor's layer for chainlink fences.
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.

Static Public Attributes

static sFStateVirtualID_c< daPlBase_cStateID_DemoNone
static sFStateVirtualID_c< daPlBase_cStateID_DemoStartWait
static sFStateVirtualID_c< daPlBase_cStateID_DemoWait
static sFStateVirtualID_c< daPlBase_cStateID_DemoInDokanU
static sFStateVirtualID_c< daPlBase_cStateID_DemoInDokanD
static sFStateVirtualID_c< daPlBase_cStateID_DemoInDokanR
static sFStateVirtualID_c< daPlBase_cStateID_DemoInDokanL
static sFStateVirtualID_c< daPlBase_cStateID_DemoOutDokanU
static sFStateVirtualID_c< daPlBase_cStateID_DemoOutDokanD
static sFStateVirtualID_c< daPlBase_cStateID_DemoOutDokanR
static sFStateVirtualID_c< daPlBase_cStateID_DemoOutDokanL
static sFStateVirtualID_c< daPlBase_cStateID_DemoOutDokanRoll
static sFStateVirtualID_c< daPlBase_cStateID_DemoInWaterTank
static sFStateVirtualID_c< daPlBase_cStateID_DemoOutWaterTank
static sFStateVirtualID_c< daPlBase_cStateID_DemoRailDokan
static sFStateVirtualID_c< daPlBase_cStateID_DemoDown
static sFStateVirtualID_c< daPlBase_cStateID_DemoNextGotoBlock
static sFStateVirtualID_c< daPlBase_cStateID_DemoGoal
static sFStateVirtualID_c< daPlBase_cStateID_DemoControl
static sFStateVirtualID_c< daPlBase_cStateID_None
static sFStateVirtualID_c< daPlBase_cStateID_Walk
static sFStateVirtualID_c< daPlBase_cStateID_Jump
static sFStateVirtualID_c< daPlBase_cStateID_SitJump
static sFStateVirtualID_c< daPlBase_cStateID_Fall
static sFStateVirtualID_c< daPlBase_cStateID_Land
static sFStateVirtualID_c< daPlBase_cStateID_Crouch
static sFStateVirtualID_c< daPlBase_cStateID_Slip
static sFStateVirtualID_c< daPlBase_cStateID_Turn
static sFStateVirtualID_c< daPlBase_cStateID_HipAttack
static sFStateVirtualID_c< daPlBase_cStateID_Swim
static sFStateVirtualID_c< daPlBase_cStateID_JumpDai
static sFStateVirtualID_c< daPlBase_cStateID_PlayerJumpDai
static sFStateVirtualID_c< daPlBase_cStateID_Funsui
static sFStateVirtualID_c< daPlBase_cStateID_Kani
static sFStateVirtualID_c< daPlBase_cStateID_Cloud
static sFStateVirtualID_c< daPlBase_cStateID_AnimePlay
static sFStateVirtualID_c< daPlBase_cStateID_WaitJump
Static Public Attributes inherited from dActor_c
static const float smc_CULL_XLIMIT = 80.0f
 The default max bound X offset.
static const float smc_CULL_YLIMIT = 256.0f
 The default max bound Y offset.
static const float smc_CULL_AREA_XLIMIT = 128.0f
 The default max bound X size.
static const float smc_CULL_AREA_YLIMIT = 128.0f
 The default max bound Y size.
static const mVec2_c smc_FUKIDASHI_RANGE = mVec2_c(9.0f, 12.0f)
 The default trigger area size for displaying action prompts.
static u8 mExecStopReq
 The actors for which the execute operation is requested to be disabled.
static u8 mDrawStopReq
 The actor kinds for which the draw operation is requested to be disabled.
static u8 mExecStop
 The actors for which the execute operation is currently disabled.
static u8 mDrawStop
 The actor kinds for which the draw operation is currently disabled.
static searchNearPlayerFunc mSearchNearPlayerFunc
 The player search function.
static getTrgToSrcDirFunc mGetTrgToSrcDirFunc
 The direction detection function.
static u8 m_tmpCtLayerNo
 Temporary storage for the next constructed actor's layer. See mLayer.
static u8 * m_read_p_keep
 Temporary storage for the next created sprite actor's spawn flags. See mpSpawnFlags.
static u16 m_flag_keep
 Temporary storage for the next created sprite actor's tracked event IDs. See mEventNums.
static u64 m_flagbit_keep
 Temporary storage for the next created sprite actor's event mask. See mEventMask.
static u8 m_mbgchoice_keep
 Temporary storage for the next created sprite actor's layer. See mLayer.

Additional Inherited Members

Static Public Member Functions inherited from dActor_c
static void setSoftLight_Player (m3d::bmdl_c &mdl)
 Sets the soft light effect for players.
static void setSoftLight_Enemy (m3d::bmdl_c &mdl)
 Sets the soft light effect for enemies.
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_Boss (m3d::bmdl_c &mdl)
 Sets the soft light effect for bosses.
static void setSoftLight_Item (m3d::bmdl_c &mdl)
 Sets the soft light effect for items.
static bool screenCullCheck (const mVec3_c &pos, const sRangeDataF &visibleBound, sRangeDataF destroyBound, u8 areaID)
 Checks if the actor should be culled due to being outside the screen.
static dAcPy_csearchNearPlayer_Main (mVec2_c &delta, const mVec2_c &pos)
 See searchNearPlayerFunc.
static dAcPy_csearchNearPlayerNormal (mVec2_c &delta, const mVec2_c &pos)
 See searchNearPlayerFunc.
static dAcPy_csearchNearPlayerLoop (mVec2_c &delta, const mVec2_c &pos)
 See searchNearPlayerFunc.
static bool getTrgToSrcDir_Main (float trgX, float srcX)
 See getTrgToSrcDirFunc.
static bool getTrgToSrcDirNormal (float trgX, float srcX)
 See getTrgToSrcDirFunc.
static bool getTrgToSrcDirLoop (float trgX, float srcX)
 See getTrgToSrcDirFunc.
static void changePosAngle (mVec3_c *pos, mAng3_c *ang, int param3)
 Adjusts the actor's position to account for looping stages.
static void setSearchNearPlayerFunc (int loopType)
 Sets the player search function to be used for the level.
static void setGetTrgToSrcDirFunc (int loopType)
 Sets the direction detection function to be used for the level.
static void setChangePosAngleFunc (int loopType)
 Sets the position update function to be used for the level.
static void setLoopFunc (int loopType)
 Sets the position-related functions for the level.
static void setTmpCtData (u8 layer)
 Sets temporary data to be used for the next actor's construction.
static dActor_cconstruct (ProfileName profName, unsigned long param, const mVec3_c *position, const mAng3_c *rotation, u8 layer)
 Creates a stage actor without a parent.
static dActor_cconstruct (ProfileName profName, dBase_c *parent, unsigned long param, const mVec3_c *position, const mAng3_c *rotation, u8 layer)
 Creates a child stage actor with the given parent.
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.
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.
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::FrmHeap * mHeap
 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 Enumeration Documentation

◆ DamageType_e

enum daPlBase_c::DamageType_e

Definition at line 20 of file d_a_player_base.hpp.

◆ DokanDir_e

enum daPlBase_c::DokanDir_e

Definition at line 27 of file d_a_player_base.hpp.

◆ StarSet_e

enum daPlBase_c::StarSet_e

Definition at line 35 of file d_a_player_base.hpp.

◆ AnmBlend_e

enum daPlBase_c::AnmBlend_e

Definition at line 37 of file d_a_player_base.hpp.

Member Function Documentation

◆ create()

virtual int daPlBase_c::create ( )
virtual

do method for the create operation.

Returns
A PACK_RESULT_e value.

Reimplemented from fBase_c.

◆ preExecute()

virtual int daPlBase_c::preExecute ( )
virtual

pre method for the execute operation.

Returns
A PACK_RESULT_e value.

Reimplemented from dActor_c.

◆ execute()

virtual int daPlBase_c::execute ( )
virtual

do method for the execute operation.

Returns
A PACK_RESULT_e value.

Reimplemented from fBase_c.

◆ postExecute()

virtual void daPlBase_c::postExecute ( fBase_c::MAIN_STATE_e state)
virtual

post method for the execute operation.

Reimplemented from dActor_c.

◆ doDelete()

virtual int daPlBase_c::doDelete ( )
virtual

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 fBase_c.

◆ preDraw()

virtual int daPlBase_c::preDraw ( )
virtual

pre method for the draw operation.

Returns
A PACK_RESULT_e value.

Reimplemented from dActor_c.

◆ draw()

virtual int daPlBase_c::draw ( )
virtual

do method for the draw operation.

Returns
A PACK_RESULT_e value.

Reimplemented from fBase_c.

◆ executeMain()

virtual void daPlBase_c::executeMain ( )
inlinevirtual

Definition at line 53 of file d_a_player_base.hpp.

◆ executeLastPlayer()

virtual void daPlBase_c::executeLastPlayer ( )
inlinevirtual

Definition at line 54 of file d_a_player_base.hpp.

◆ executeLastAll()

virtual void daPlBase_c::executeLastAll ( )
inlinevirtual

Definition at line 55 of file d_a_player_base.hpp.

◆ isItemKinopio()

virtual bool daPlBase_c::isItemKinopio ( )
inlinevirtual

Definition at line 56 of file d_a_player_base.hpp.

◆ setPowerup()

virtual void daPlBase_c::setPowerup ( PLAYER_POWERUP_e ,
int  )
virtual

◆ getHeadBgPointData()

virtual void * daPlBase_c::getHeadBgPointData ( )
inlinevirtual

Definition at line 59 of file d_a_player_base.hpp.

◆ getWallBgPointData()

virtual void * daPlBase_c::getWallBgPointData ( )
inlinevirtual

Definition at line 60 of file d_a_player_base.hpp.

◆ getFootBgPointData()

virtual void * daPlBase_c::getFootBgPointData ( )
inlinevirtual

Definition at line 61 of file d_a_player_base.hpp.

◆ getStandHeadBgPointY()

virtual float daPlBase_c::getStandHeadBgPointY ( )
inlinevirtual

Definition at line 62 of file d_a_player_base.hpp.

◆ checkBgCrossSub()

virtual void daPlBase_c::checkBgCrossSub ( )
inlinevirtual

Definition at line 63 of file d_a_player_base.hpp.

◆ getSandSinkRate()

virtual float daPlBase_c::getSandSinkRate ( )
inlinevirtual

Definition at line 65 of file d_a_player_base.hpp.

◆ setBalloonInDispOut()

virtual bool daPlBase_c::setBalloonInDispOut ( int )
inlinevirtual

Definition at line 71 of file d_a_player_base.hpp.

◆ isChange()

virtual bool daPlBase_c::isChange ( )
inlinevirtual

Definition at line 72 of file d_a_player_base.hpp.

◆ vf130()

virtual int daPlBase_c::vf130 ( float f,
mVec2_c * v,
int param3 )
virtual

◆ setDemoCannonWarp()

virtual bool daPlBase_c::setDemoCannonWarp ( int ,
short ,
short  )
inlinevirtual

Definition at line 77 of file d_a_player_base.hpp.

◆ setTimeOverDemo()

virtual bool daPlBase_c::setTimeOverDemo ( )
inlinevirtual

Definition at line 122 of file d_a_player_base.hpp.

◆ setFallDownDemo()

virtual void daPlBase_c::setFallDownDemo ( )
inlinevirtual

Definition at line 123 of file d_a_player_base.hpp.

◆ vf284()

virtual bool daPlBase_c::vf284 ( int )
virtual

◆ initializeDemoControl()

virtual void daPlBase_c::initializeDemoControl ( )
inlinevirtual

Definition at line 129 of file d_a_player_base.hpp.

◆ isWaitFrameCountMax()

virtual bool daPlBase_c::isWaitFrameCountMax ( )
inlinevirtual

Definition at line 152 of file d_a_player_base.hpp.

◆ checkWalkNextAction()

virtual bool daPlBase_c::checkWalkNextAction ( )
inlinevirtual

Definition at line 153 of file d_a_player_base.hpp.

◆ setRideJrCrown()

virtual bool daPlBase_c::setRideJrCrown ( const dActor_c * )
inlinevirtual

Definition at line 170 of file d_a_player_base.hpp.

◆ isRideJrCrownOwn()

virtual bool daPlBase_c::isRideJrCrownOwn ( const dActor_c * )
inlinevirtual

Definition at line 171 of file d_a_player_base.hpp.

◆ setRideJrCrownMtx()

virtual void daPlBase_c::setRideJrCrownMtx ( const mMtx_c * )
inlinevirtual

Definition at line 172 of file d_a_player_base.hpp.

◆ setRideJrCrownAnm()

virtual void daPlBase_c::setRideJrCrownAnm ( int )
inlinevirtual

Definition at line 173 of file d_a_player_base.hpp.

◆ getHeadTopPosP()

virtual float * daPlBase_c::getHeadTopPosP ( )
inlinevirtual

Definition at line 175 of file d_a_player_base.hpp.

◆ isCarry()

virtual bool daPlBase_c::isCarry ( ) const
inlinevirtual

Definition at line 177 of file d_a_player_base.hpp.

◆ isLiftUp()

virtual bool daPlBase_c::isLiftUp ( )
inlinevirtual

Definition at line 178 of file d_a_player_base.hpp.

◆ isLiftUpExceptMame()

virtual bool daPlBase_c::isLiftUpExceptMame ( )
inlinevirtual

Definition at line 180 of file d_a_player_base.hpp.

◆ endStar()

virtual void daPlBase_c::endStar ( )
inlinevirtual

Definition at line 183 of file d_a_player_base.hpp.

◆ setVirusStar()

virtual void daPlBase_c::setVirusStar ( daPlBase_c * )
inlinevirtual

Definition at line 184 of file d_a_player_base.hpp.

◆ vf3fc()

virtual u32 daPlBase_c::vf3fc ( float ,
float ,
int ,
int ,
int  )
virtual

◆ vf400()

virtual u32 daPlBase_c::vf400 ( float ,
float ,
int ,
int ,
int  )
virtual

◆ clearJumpActionInfo()

virtual void daPlBase_c::clearJumpActionInfo ( int )
inlinevirtual

Definition at line 199 of file d_a_player_base.hpp.

◆ set1UpKinokoEffect()

virtual void daPlBase_c::set1UpKinokoEffect ( )
inlinevirtual

Definition at line 203 of file d_a_player_base.hpp.

◆ setFlagGetEffect()

virtual void daPlBase_c::setFlagGetEffect ( )
inlinevirtual

Definition at line 204 of file d_a_player_base.hpp.

◆ vf434()

virtual void daPlBase_c::vf434 ( int ,
int  )
virtual

◆ vf438()

virtual void daPlBase_c::vf438 ( int ,
int  )
virtual

◆ getAnkleCenterX()

float daPlBase_c::getAnkleCenterX ( )
inline

Definition at line 230 of file d_a_player_base.hpp.

◆ getAnkleCenterY()

float daPlBase_c::getAnkleCenterY ( )
inline

Definition at line 231 of file d_a_player_base.hpp.

◆ getTreadCount()

int daPlBase_c::getTreadCount ( )
inline

Definition at line 233 of file d_a_player_base.hpp.

Member Data Documentation

◆ StateID_DemoNone

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoNone
static

Definition at line 79 of file d_a_player_base.hpp.

◆ StateID_DemoStartWait

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoStartWait
static

Definition at line 80 of file d_a_player_base.hpp.

◆ StateID_DemoWait

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoWait
static

Definition at line 81 of file d_a_player_base.hpp.

◆ StateID_DemoInDokanU

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoInDokanU
static

Definition at line 82 of file d_a_player_base.hpp.

◆ StateID_DemoInDokanD

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoInDokanD
static

Definition at line 83 of file d_a_player_base.hpp.

◆ StateID_DemoInDokanR

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoInDokanR
static

Definition at line 84 of file d_a_player_base.hpp.

◆ StateID_DemoInDokanL

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoInDokanL
static

Definition at line 85 of file d_a_player_base.hpp.

◆ StateID_DemoOutDokanU

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoOutDokanU
static

Definition at line 86 of file d_a_player_base.hpp.

◆ StateID_DemoOutDokanD

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoOutDokanD
static

Definition at line 87 of file d_a_player_base.hpp.

◆ StateID_DemoOutDokanR

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoOutDokanR
static

Definition at line 88 of file d_a_player_base.hpp.

◆ StateID_DemoOutDokanL

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoOutDokanL
static

Definition at line 89 of file d_a_player_base.hpp.

◆ StateID_DemoOutDokanRoll

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoOutDokanRoll
static

Definition at line 90 of file d_a_player_base.hpp.

◆ StateID_DemoInWaterTank

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoInWaterTank
static

Definition at line 91 of file d_a_player_base.hpp.

◆ StateID_DemoOutWaterTank

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoOutWaterTank
static

Definition at line 92 of file d_a_player_base.hpp.

◆ StateID_DemoRailDokan

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoRailDokan
static

Definition at line 93 of file d_a_player_base.hpp.

◆ StateID_DemoDown

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoDown
static

Definition at line 94 of file d_a_player_base.hpp.

◆ StateID_DemoNextGotoBlock

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoNextGotoBlock
static

Definition at line 95 of file d_a_player_base.hpp.

◆ StateID_DemoGoal

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoGoal
static

Definition at line 96 of file d_a_player_base.hpp.

◆ StateID_DemoControl

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_DemoControl
static

Definition at line 97 of file d_a_player_base.hpp.

◆ StateID_None

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_None
static

Definition at line 133 of file d_a_player_base.hpp.

◆ StateID_Walk

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_Walk
static

Definition at line 134 of file d_a_player_base.hpp.

◆ StateID_Jump

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_Jump
static

Definition at line 135 of file d_a_player_base.hpp.

◆ StateID_SitJump

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_SitJump
static

Definition at line 136 of file d_a_player_base.hpp.

◆ StateID_Fall

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_Fall
static

Definition at line 137 of file d_a_player_base.hpp.

◆ StateID_Land

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_Land
static

Definition at line 138 of file d_a_player_base.hpp.

◆ StateID_Crouch

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_Crouch
static

Definition at line 139 of file d_a_player_base.hpp.

◆ StateID_Slip

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_Slip
static

Definition at line 140 of file d_a_player_base.hpp.

◆ StateID_Turn

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_Turn
static

Definition at line 141 of file d_a_player_base.hpp.

◆ StateID_HipAttack

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_HipAttack
static

Definition at line 142 of file d_a_player_base.hpp.

◆ StateID_Swim

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_Swim
static

Definition at line 143 of file d_a_player_base.hpp.

◆ StateID_JumpDai

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_JumpDai
static

Definition at line 144 of file d_a_player_base.hpp.

◆ StateID_PlayerJumpDai

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_PlayerJumpDai
static

Definition at line 145 of file d_a_player_base.hpp.

◆ StateID_Funsui

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_Funsui
static

Definition at line 146 of file d_a_player_base.hpp.

◆ StateID_Kani

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_Kani
static

Definition at line 147 of file d_a_player_base.hpp.

◆ StateID_Cloud

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_Cloud
static

Definition at line 148 of file d_a_player_base.hpp.

◆ StateID_AnimePlay

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_AnimePlay
static

Definition at line 149 of file d_a_player_base.hpp.

◆ StateID_WaitJump

sFStateVirtualID_c< daPlBase_c > daPlBase_c::StateID_WaitJump
static

Definition at line 150 of file d_a_player_base.hpp.

◆ mPad1

char daPlBase_c::mPad1[0xc9e]

Definition at line 237 of file d_a_player_base.hpp.

◆ mSmallScoreOffset

float daPlBase_c::mSmallScoreOffset

Definition at line 238 of file d_a_player_base.hpp.

◆ mPad2

char daPlBase_c::mPad2[0x1]

Definition at line 239 of file d_a_player_base.hpp.

◆ mAmiLayer

u8 daPlBase_c::mAmiLayer

Definition at line 240 of file d_a_player_base.hpp.

◆ mPad3

char daPlBase_c::mPad3[0x4a]

Definition at line 241 of file d_a_player_base.hpp.

◆ mTreadCount

s8 daPlBase_c::mTreadCount

Definition at line 242 of file d_a_player_base.hpp.

◆ m_ced

s8 daPlBase_c::m_ced

Definition at line 243 of file d_a_player_base.hpp.

◆ m_cee

s8 daPlBase_c::m_cee

Definition at line 244 of file d_a_player_base.hpp.

◆ mPad4

char daPlBase_c::mPad4[0x52]

Definition at line 245 of file d_a_player_base.hpp.

◆ mFlags

u32 daPlBase_c::mFlags

Definition at line 246 of file d_a_player_base.hpp.

◆ mPad5

u8 daPlBase_c::mPad5[0x3b4]

Definition at line 247 of file d_a_player_base.hpp.