|
NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/bases/d_a_ice.hpp>
Public Types | |
| enum | IceType_e { ICE_TYPE_SQUARE , ICE_TYPE_TATE , ICE_TYPE_YOKO , ICE_TYPE_BIG_SQUARE , ICE_TYPE_BIG_TATE , ICE_TYPE_BIG_YOKO , ICE_TYPE_COUNT } |
| The possible pre-defined ice block types. More... | |
| enum | InitType_e { INIT_LAND , INIT_FREEZE , INIT_AIR , INIT_FALL , INIT_WATER , INIT_WATER_TOGE , INIT_WATER_STUCK , INIT_COVER , INIT_HOP } |
| How the ice block behaves when it's created. More... | |
| enum | IceWeight_e { ICE_WEIGHT_LIGHTEST , ICE_WEIGHT_LIGHT , ICE_WEIGHT_HEAVY , ICE_WEIGHT_HEAVIEST , ICE_WEIGHT_COUNT } |
| The weight class of the ice block. Heavy blocks cannot be carried. More... | |
| enum | CollisionMode_e { COLLISION_NORMAL , COLLISION_NONE , COLLISION_NO_SINK_COLLISION } |
| The tile collision mode of the ice block. More... | |
| enum | Flags_e { FLAG_BREAKABLE = BIT_FLAG(0) , FLAG_CARRYABLE = BIT_FLAG(1) } |
| Flags for mFlags. More... | |
| enum | PushSinkType_e { PUSH_SINK_LAND , PUSH_SINK_HIP_ATTACK , PUSH_SINK_PRESS , PUSH_SINK_COUNT } |
| How the ice block is pushed under the water surface. More... | |
| enum | FloatState_e { FLOAT_STATE_INIT , FLOAT_STATE_STILL , FLOAT_STATE_RISING , FLOAT_STATE_LOWERING } |
| The state of the water surface while the block floats on top of it. See StateID_FloatWait. More... | |
| enum | WallAttachCheckResult_e { WALL_ATTACH_NONE , WALL_ATTACH_TOUCH , WALL_ATTACH_STUCK } |
| The result of checkPlAttach_Wall(). More... | |
| typedef void(daIce_c::* | EnlargeFunc) () |
| 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_DRINK , EAT_TYPE_DRINK_BIG , 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_WALL_L = BIT_FLAG(0) , COLL_WALL_R = BIT_FLAG(1) , COLL_FOOT = BIT_FLAG(2) , COLL_HEAD = BIT_FLAG(3) } |
| The directions the actor can collide with. 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 , ENEMY } |
| 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 | |
| daIce_c () | |
| Constructs a new actor. | |
| ~daIce_c () | |
| Destroys the actor. | |
| int | create () override |
do method for the create operation. | |
| int | doDelete () override |
do method for the delete operation. | |
| int | execute () override |
do method for the execute operation. | |
| int | preExecute () override |
pre method for the execute operation. | |
| int | draw () override |
do method for the draw operation. | |
| void | deleteReady () override |
| Informs the base that it's about to be deleted. | |
| void | finalUpdate () override |
Code to be executed after all actors' execute operation has run. | |
| void | block_hit_init () override |
| Callback for when a block directly beneath the actor is hit. | |
| bool | isSpinLiftUpEnable () override |
| Returns whether the actor can be carried. | |
| void | setSpinLiftUpActor (dActor_c *carryingActor) override |
| Callback for when the actor is picked up by another actor. | |
| bool | vf68 (dBg_ctr_c *collider) override |
| Unknown, related to collision. | |
| virtual bool | checkFootBgcIsGround () |
| Returns whether touching the collider beneath the ice block counts as touching the ground. | |
| void | createMdl () |
| Creates the model and texture animation according to the ice type. | |
| void | calcMdl () |
| Updates the model matrix. | |
| void | setInfo (mVec3_c size, dIceEfScale_c scale) |
| Sets up the ice block. Called by the ice manager after creation. | |
| void | initSize (const mVec3_c &scale) |
| Calculates the block's size from the ice type and the given scale. | |
| void | initPos () |
| Places the block on the ground if it's landing or falling. | |
| void | initWeight () |
| Calculates the weight class of the block. | |
| void | initCollision () |
| Sets up the tile collision, the actor collision and the dynamic collider. | |
| void | initEffect (dIceEfScale_c scale) |
| Initializes the effect maker. | |
| bool | checkInstantBreak (BOOL checkBg) |
| Checks whether the ice block should be broken immediately after creation. | |
| bool | checkPlayerIn () |
| Checks whether a player overlaps the ice block. | |
| bool | checkBgIn () |
| Checks whether a solid tile overlaps the ice block. | |
| bool | calcLandLine (float &height) |
| Calculates the highest ground position below the ice block. | |
| bool | isQuakeDamage () |
| Checks whether the ice block should be broken by an earthquake. | |
| void | quakeDamage () |
| Awards the earthquake combo score and breaks the ice block. | |
| void | breakReq (int dir, int playerNo) |
| Requests the ice block to be broken. | |
| void | floatbreakReq () |
| Requests the ice block to break on water. No score is awarded. | |
| void | combobreakReq (int dir, dActor_c *initiator) |
| Requests the ice block to be broken by a combo attack (e.g. a shell being thrown). | |
| void | plcombobreakReq (int dir, dActor_c *initiator) |
| Like combobreakReq(), but uses the player's combo counter. | |
| void | treadcombobreakReq (int dir, dActor_c *initiator) |
| Like combobreakReq(), but uses the stomp combo score. | |
| void | starbreakReq (int dir, dActor_c *initiator) |
| Like combobreakReq(), but uses the star combo score. | |
| void | setBc () |
| Sets up the tile collision sensors. | |
| void | setCarryBc () |
| Sets up the tile collision sensors while the block is being carried. | |
| void | enlargeBgc () |
| Enlarges the dynamic collider until it reaches the full size. | |
| void | enlargeBgcLand () |
| Enlarges the dynamic collider when not in water. | |
| void | enlargeBgcWater () |
| Enlarges the dynamic collider when in water. | |
| void | enemyAttach () |
| Moves the parent enemy along with the ice block. | |
| void | shake () |
| Shakes the model of the ice block. | |
| void | normalShake () |
| Shakes the model left and right. | |
| void | watertogeShake () |
| Swings the model left and right with increasing frequency. Used for INIT_WATER_TOGE. | |
| void | calcFloatAngle () |
| Tilts the ice block back and forth while floating up. | |
| void | calcFloatSpeed () |
| Accelerates the ice block towards mFloatTargetSpeed in the direction it is tilted to. | |
| bool | checkPushSink (dActor_c *actor) |
| Checks whether the given actor should push the ice block down and sets mPushSinkType accordingly. | |
| dIceMng_c * | getManager () |
| Gets the ice manager of the parent enemy. | |
| bool | checkUnderBreak (dActor_c *actor) |
| Checks whether a falling block hits a player / Yoshi from above and causes daPlBase_c::DAMAGE_HEAD_BONK. | |
| bool | checkUpperBreak (dActor_c *actor) |
| Checks whether an actor landing on the block breaks it. [Always false]. | |
| bool | checkSideBreak (dActor_c *actor, int direction) |
| Checks whether a thrown block hits a player / Yoshi from the side and causes daPlBase_c::DAMAGE_HIP_ATTACK. | |
| void | breakEffect () |
| Plays the break effect. | |
| void | meltEffect () |
| Plays the melt effect. | |
| void | yoganEffect () |
| Plays the lava splash effect. | |
| void | poisonEffect () |
| Plays the poison splash effect. | |
| bool | checkNetIn () |
| Checks whether the ice block overlaps a climbable fence. | |
| void | setCarry (dActor_c *actor) |
| Starts being carried by the given actor. | |
| mVec3_c | calcCarryPos () |
| Calculates the position of the block in the carrying player's hands. | |
| BOOL | canCarry () const |
| Checks whether the ice block can currently be picked up. | |
| bool | checkPlHasami (int *plrNo) |
| Returns whether a player is stuck between the ice block and the background collision. | |
| bool | checkPlAttach_Head (BOOL *playerTouchingCeiling) |
| Returns whether a player is standing on the ice block. | |
| bool | checkPlAttach_Foot (BOOL *playerTouchingFloor, int *plrNo) |
| Returns whether a player's head is touching the ice block. | |
| bool | checkPlAttach_Wall (int dir, int *checkResult) |
| Returns whether a player is touching the given side of the ice block. | |
| bool | checkPlHasami_Wall (dActor_c *actor, int dir) |
| Checks whether the given player is stuck between the ice block and a wall. | |
| fBaseID_e | getParentID () |
| Gets the ID of the parent enemy. | |
| float | getFloatPosY () |
| bool | isDestroy () |
| Public Member Functions inherited from dActorState_c | |
| dActorState_c () | |
| Constructs a new actor. | |
| ~dActorState_c () | |
| Destroys the actor. | |
| void | changeState (const sStateIDIf_c &newState) |
| bool | isState (const sStateIDIf_c &state) const |
| const sStateIDIf_c & | getOldStateID () const |
| 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 | 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 const char * | getKindString () const |
| Gets the base's kind string. | |
| virtual bool | ActorDrawCullCheck () |
| Checks if the actor is out of view. | |
| 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 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_c * | searchCarryFukidashiPlayer (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_c * | searchNearPlayer (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 () |
| void | setVisibleArea (const mVec2_POD_c &offset, const mVec2_POD_c &size) |
| float | getVisOffsetX () |
| float | getVisOffsetY () |
| float | getVisSizeX () |
| float | getVisSizeY () |
| float | getVisTop () |
| float | getVisBottom () |
| u8 | getKindMask () |
| u8 | getLayer () const |
| u8 | getAmiLine () const |
| 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 |
| float | threeQuarterSpeedX () const |
| float | getSpeedF () const |
| float | getAccelF () const |
| float | absSpeedF () |
| 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. | |
| fBaseID_e | getID () const |
| void | deleteRequest () |
| Requests deletion of the base. | |
| fBase_c * | getConnectParent () const |
| Gets the base's parent. | |
| fBase_c * | getConnectChild () const |
| Gets the base's first child. | |
| fBase_c * | getConnectBrNext () 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 Member Functions | |
| static void | callBackFoot (dActor_c *self, dActor_c *other) |
| Called when another actor's foot sensor touches the ice block. | |
| static void | callBackHead (dActor_c *self, dActor_c *other) |
| Called when another actor's head sensor touches the ice block. | |
| static void | callBackWall (dActor_c *self, dActor_c *other, u8 dir) |
| Called when another actor's wall sensor touches the ice block. | |
| static bool | checkRevFoot (dActor_c *self, dActor_c *other) |
| Returns whether the ice block should push up the actor standing on it. | |
| static bool | checkRevHead (dActor_c *self, dActor_c *other) |
| Returns whether the ice block should push down the actor below it. | |
| static bool | checkRevWall (dActor_c *self, dActor_c *other, u8 dir) |
| Returns whether the ice block should push the actor at its side. | |
| static void | ccCallBack (dCc_c *self, dCc_c *other) |
| The actor collision callback. | |
| static void | ccCallBack_Water (dCc_c *self, dCc_c *other) |
| The actor collision callback in water. | |
| 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 int | 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_c * | searchNearPlayer_Main (mVec2_c &delta, const mVec2_c &pos) |
| See searchNearPlayerFunc. | |
| static dAcPy_c * | searchNearPlayerNormal (mVec2_c &delta, const mVec2_c &pos) |
| See searchNearPlayerFunc. | |
| static dAcPy_c * | searchNearPlayerLoop (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_c * | construct (ProfileName profName, unsigned long param, const mVec3_c *position, const mAng3_c *rotation, u8 layer) |
| Creates a stage actor without a parent. | |
| static dActor_c * | construct (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_c * | construct (ProfileName profName, unsigned long param, const mVec3_c *position, const mAng3_c *rotation) |
| Creates an actor without a parent. | |
| static dBaseActor_c * | construct (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_c * | searchBaseByProfName (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_c * | createBase (ProfileName profName, dBase_c *parent, unsigned long param, u8 groupType) |
| Creates a child base under the given parent. | |
| static dBase_c * | createRoot (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_c * | createChild (ProfileName profName, fBase_c *parent, unsigned long param, u8 groupType) |
| Creates a child base under the given parent. | |
| static fBase_c * | createRoot (ProfileName profName, unsigned long param, u8 groupType) |
| Creates a root base. | |
Static Public Attributes | |
| static sFStateID_c< daIce_c > | StateID_Freeze |
| Frozen in place. | |
| static sFStateID_c< daIce_c > | StateID_Cover |
| Following the parent enemy. [Used for Fuzzies]. | |
| static sFStateID_c< daIce_c > | StateID_Hop |
| Being launched with the parent enemy's speed. [Used for the Pokey segments]. | |
| static sFStateID_c< daIce_c > | StateID_Sink |
| Slowing down after being created underwater. | |
| static sFStateID_c< daIce_c > | StateID_PushSink |
| Being pushed under the water surface. | |
| static sFStateID_c< daIce_c > | StateID_Float |
| Floating up to the water surface while tilting back and forth. | |
| static sFStateID_c< daIce_c > | StateID_SmallFloat |
| Floating back up to the water surface after a small push downwards. | |
| static sFStateID_c< daIce_c > | StateID_FloatWait |
| Floating on the water surface. | |
| static sFStateID_c< daIce_c > | StateID_TogeFloat |
| Floating up to the water surface, variant for spiky enemies. | |
| static sFStateID_c< daIce_c > | StateID_ShakeFloat |
| Floating up slowly while shaking before melting. | |
| static sFStateID_c< daIce_c > | StateID_Air |
| Hanging in the air before falling down. | |
| static sFStateID_c< daIce_c > | StateID_Fall |
| Falling down. | |
| static sFStateID_c< daIce_c > | StateID_Land |
| Resting on the ground. | |
| static sFStateID_c< daIce_c > | StateID_Dive |
| Slowing down after falling into water. | |
| static sFStateID_c< daIce_c > | StateID_YoganDive |
| Sinking into lava or poison. | |
| static sFStateID_c< daIce_c > | StateID_Carry |
| Being carried by a player. | |
| static sFStateID_c< daIce_c > | StateID_Throw |
| Sliding across the ground after being thrown. | |
| static sFStateID_c< daIce_c > | StateID_Drop |
| Falling down after being dropped. Breaks on landing. | |
| static sFStateID_c< daIce_c > | StateID_Melt_Normal |
| Breaking apart after the ice block has has melted. | |
| Static Public Attributes inherited from dActorState_c | |
| static sFStateVirtualID_c< dActorState_c > | StateID_Gegneric |
| An example state that does nothing. | |
| 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 u8 | m_flag_keep [2] |
| 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. | |
Private Member Functions | |
| ACTOR_PARAM_CONFIG (IceType, 0, 4) | |
| The shape of the ice block. See IceType_e. | |
| ACTOR_PARAM_CONFIG (Unbreakable, 8, 1) | |
| If not set, sets FLAG_BREAKABLE. | |
| ACTOR_PARAM_CONFIG (NoCarry, 12, 1) | |
| If not set, sets FLAG_CARRYABLE. | |
| ACTOR_PARAM_CONFIG (CollisionMode, 16, 2) | |
| The tile collision mode. See CollisionMode_e. | |
| ACTOR_PARAM_CONFIG (NoQuakeScore, 20, 1) | |
| Whether to not award a score when broken by an earthquake. | |
| ACTOR_PARAM_CONFIG (InitType, 24, 4) | |
| The initial behavior. See InitType_e. | |
Private Attributes | |
| dHeapAllocator_c | mAllocator |
| The allocator. | |
| nw4r::g3d::ResFile | mResFileMdl |
| The resource file. | |
| m3d::mdl_c | mMdl |
| The model. | |
| nw4r::g3d::ResAnmTexSrt | mResFileAnm |
| The texture animation resource file. | |
| m3d::anmTexSrt_c | mAnm |
| The texture animation. | |
| dBg_ctr_c | mBgCtr |
| The dynamic collider. | |
| mVec2_c | mCurrBgcSize |
| The current dynamic collider size, grows over time. | |
| mVec2_c | mBgcSizeIncrease |
| The amount to increase mCurrBgcSize per frame until the full size is reached. | |
| sBcMany | mBcPointFoot |
| The foot sensor for tile collision. | |
| sBcMany | mBcPointHead |
| The head sensor for tile collision. | |
| sBcMany | mBcPointWall |
| The wall sensor for tile collision. | |
| mVec3_c | mPosDiff |
| The offset to the parent actor. | |
| mVec3_c | mInitialPos |
| The position at creation. | |
| mVec3_c | mModelPos |
| The position of the model, including the shake offset. | |
| mVec3_c | mPrevPos |
| The position on the previous frame. | |
| mVec3_c | mSize |
| The size of the ice block. | |
| PushSinkType_e | mPushSinkType |
| How the block got pushed under the water surface. | |
| int | mCarriedByPlrNo |
| The player number of the player carrying the ice block. | |
| float | mFloatTargetSpeed |
| The target speed when floating. | |
| float | mFloatAccel |
| The acceleration towards mFloatTargetSpeed. | |
| short | mFloatAngle |
| The current angle while floating up. | |
| u8 | mPad1 [0x4] |
| float | mExtraFloatSpeedX |
| Added to the X speed while floating. | |
| BOOL | mShake |
| Whether the ice block should shake. | |
| short | mShakeRotSpeed |
| The angular speed of mShakeRotAngle. | |
| short | mShakeRotAngle |
| The current angle of the swinging motion. | |
| short | mShakeRotAmplitude |
| The maximum rotation of the swinging motion. | |
| u8 | mPad2 [0x4] |
| BOOL | mIsWater |
| Whether the block was created in water. | |
| short | mCurrFloatUpDown |
| Counter for bobbing up and down on the water surface. | |
| float | mWaterHeight |
| The height of the water surface. | |
| FloatState_e | mFloatState |
| The state of the water surface, used in StateID_FloatWait. | |
| float | mStartFallY |
| The Y position where the block started falling, used to check whether the block falls far enough to break. | |
| int | mCollEntryTimer |
| Countdown until the collision is fully activated. | |
| int | mTimer |
| A general purpose timer. | |
| u32 | mFlags |
| Value is a FLAG_e. | |
| BOOL | mBreakRequested |
| Whether the ice block should break. | |
| float | mPrevPosX |
| The X position before running execute(). | |
| InitType_e | mInitType |
| The initial behavior. | |
| IceWeight_e | mWeightType |
| The weight class. | |
| dIceMng_c * | mpIceMng |
| The ice manager. | |
| dIceEfMaker_c | mIceEfMaker |
| The ice effect maker. | |
Static Private Attributes | |
| static const short | smc_OBJBG_DUMMY_ANGLE = 0 |
Additional Inherited Members | |
| Public Attributes inherited from dActorState_c | |
| sFStateMgr_c< dActorState_c, sStateMethodUsr_FI_c > | mStateMgr |
| The state manager. | |
| Public Attributes inherited from dActor_c | |
| u8 | m_00 |
| Seems to be a player bit flag. | |
| int | 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 collided with in the previous frame. Value is a BG_COLL_FLAG_e. | |
| u8 * | mpSpawnFlags |
| The spawn flags for the actor. See ACTOR_SPAWN_FLAG_e. | |
| u16 * | mpDeleteVal |
| u8 | mEventNums [2] |
| The event IDs the actor is tracking. | |
| u64 | mEventMask |
| The event mask, generated from mEventNums. | |
| int | m_23b |
| u16 | mSpriteSpawnFlags |
| The spawn flags from the sprite data entry. | |
| bool | mBlockHit |
| Whether a block below the actor was hit. | |
| fBaseID_e | mEatenByID |
| The unique identifier of the eating actor. | |
| u8 | mEatState |
| The actor's eat state. Value is a EAT_STATE_e. | |
| u8 | mEatBehavior |
| 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 * | mpPropelParts |
| 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 fProf::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 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). | |
| 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 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. | |
| fArcLoad_c * | mpArcList |
| See Unused Content. | |
| fLiMgBa_c | mBaseLinks |
| 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. | |
| typedef void(daIce_c::* daIce_c::EnlargeFunc) () |
Definition at line 91 of file d_a_ice.hpp.
| enum daIce_c::IceType_e |
The possible pre-defined ice block types.
Definition at line 16 of file d_a_ice.hpp.
| enum daIce_c::InitType_e |
How the ice block behaves when it's created.
| Enumerator | |
|---|---|
| INIT_LAND | The block rests on the ground.
|
| INIT_FREEZE | The block is frozen in place indefinitely.
|
| INIT_AIR | The block hangs in the air for a while, then falls down.
|
| INIT_FALL | The block falls down immediately.
|
| INIT_WATER | The block was created underwater and floats up.
|
| INIT_WATER_TOGE | Same as INIT_WATER, but for spiky enemies that break the ice block after a while. |
| INIT_WATER_STUCK | The block was created underwater, but doesn't float up. |
| INIT_COVER | The block follows the parent enemy.
|
| INIT_HOP | The block is launched with the parent enemy's speed.
|
Definition at line 28 of file d_a_ice.hpp.
| enum daIce_c::IceWeight_e |
The weight class of the ice block. Heavy blocks cannot be carried.
Definition at line 42 of file d_a_ice.hpp.
The tile collision mode of the ice block.
Definition at line 52 of file d_a_ice.hpp.
| enum daIce_c::Flags_e |
Flags for mFlags.
| Enumerator | |
|---|---|
| FLAG_BREAKABLE | The block can be broken by ground pounding or attacking it from below. |
| FLAG_CARRYABLE | The block can be picked up by players. |
Definition at line 60 of file d_a_ice.hpp.
How the ice block is pushed under the water surface.
| Enumerator | |
|---|---|
| PUSH_SINK_LAND | A player landed on the block. |
| PUSH_SINK_HIP_ATTACK | A player ground-pounded the block. |
| PUSH_SINK_PRESS | A player standing on the block is pressed against a ceiling. |
Definition at line 67 of file d_a_ice.hpp.
The state of the water surface while the block floats on top of it. See StateID_FloatWait.
Definition at line 76 of file d_a_ice.hpp.
The result of checkPlAttach_Wall().
Definition at line 85 of file d_a_ice.hpp.
|
inline |
Constructs a new actor.
Definition at line 93 of file d_a_ice.hpp.
|
inline |
Destroys the actor.
Definition at line 94 of file d_a_ice.hpp.
|
overridevirtual |
do method for the create operation.
Reimplemented from fBase_c.
Definition at line 64 of file d_a_ice.cpp.
|
overridevirtual |
do method for the delete operation.
This method was renamed due to conflict with the delete C++ keyword.
Reimplemented from fBase_c.
Definition at line 221 of file d_a_ice.cpp.
|
overridevirtual |
do method for the execute operation.
Reimplemented from fBase_c.
Definition at line 185 of file d_a_ice.cpp.
|
overridevirtual |
pre method for the execute operation.
Reimplemented from dActor_c.
Definition at line 157 of file d_a_ice.cpp.
|
overridevirtual |
do method for the draw operation.
Reimplemented from fBase_c.
Definition at line 204 of file d_a_ice.cpp.
|
overridevirtual |
Informs the base that it's about to be deleted.
Reimplemented from fBase_c.
Definition at line 209 of file d_a_ice.cpp.
|
overridevirtual |
Code to be executed after all actors' execute operation has run.
Reimplemented from dBaseActor_c.
Definition at line 483 of file d_a_ice.cpp.
|
overridevirtual |
Callback for when a block directly beneath the actor is hit.
Reimplemented from dActor_c.
Definition at line 1091 of file d_a_ice.cpp.
|
inlineoverridevirtual |
Returns whether the actor can be carried.
Reimplemented from dActor_c.
Definition at line 104 of file d_a_ice.hpp.
|
inlineoverridevirtual |
Callback for when the actor is picked up by another actor.
| carryingActor | The actor performing the carrying action. |
Reimplemented from dActor_c.
Definition at line 105 of file d_a_ice.hpp.
|
overridevirtual |
Unknown, related to collision.
Reimplemented from dActor_c.
Definition at line 241 of file d_a_ice.cpp.
|
virtual |
Returns whether touching the collider beneath the ice block counts as touching the ground.
Definition at line 250 of file d_a_ice.cpp.
| void daIce_c::createMdl | ( | ) |
Creates the model and texture animation according to the ice type.
Definition at line 130 of file d_a_ice.cpp.
| void daIce_c::calcMdl | ( | ) |
Updates the model matrix.
Definition at line 226 of file d_a_ice.cpp.
| void daIce_c::setInfo | ( | mVec3_c | size, |
| dIceEfScale_c | scale ) |
Sets up the ice block. Called by the ice manager after creation.
| size | The scale of the ice block, relative to the default size of the ice type. |
| scale | The scale of the effects. |
Definition at line 257 of file d_a_ice.cpp.
| void daIce_c::initSize | ( | const mVec3_c & | scale | ) |
Calculates the block's size from the ice type and the given scale.
Definition at line 267 of file d_a_ice.cpp.
| void daIce_c::initPos | ( | ) |
Places the block on the ground if it's landing or falling.
Definition at line 279 of file d_a_ice.cpp.
| void daIce_c::initWeight | ( | ) |
Calculates the weight class of the block.
Definition at line 295 of file d_a_ice.cpp.
| void daIce_c::initCollision | ( | ) |
Sets up the tile collision, the actor collision and the dynamic collider.
Definition at line 308 of file d_a_ice.cpp.
| void daIce_c::initEffect | ( | dIceEfScale_c | scale | ) |
Initializes the effect maker.
Definition at line 362 of file d_a_ice.cpp.
| bool daIce_c::checkInstantBreak | ( | BOOL | checkBg | ) |
Checks whether the ice block should be broken immediately after creation.
| checkBg | Whether to also check for overlap with background tiles. |
Definition at line 370 of file d_a_ice.cpp.
| bool daIce_c::checkPlayerIn | ( | ) |
Checks whether a player overlaps the ice block.
Definition at line 382 of file d_a_ice.cpp.
| bool daIce_c::checkBgIn | ( | ) |
Checks whether a solid tile overlaps the ice block.
Definition at line 407 of file d_a_ice.cpp.
| bool daIce_c::calcLandLine | ( | float & | height | ) |
Calculates the highest ground position below the ice block.
| height | Receives the ground height, if found. |
Definition at line 435 of file d_a_ice.cpp.
| bool daIce_c::isQuakeDamage | ( | ) |
Checks whether the ice block should be broken by an earthquake.
Definition at line 516 of file d_a_ice.cpp.
| void daIce_c::quakeDamage | ( | ) |
Awards the earthquake combo score and breaks the ice block.
Definition at line 541 of file d_a_ice.cpp.
Requests the ice block to be broken.
| dir | The direction the enemy flies off in. |
| playerNo | The player that broke the ice block, or -1. Receives a score if valid. |
Definition at line 1095 of file d_a_ice.cpp.
| void daIce_c::floatbreakReq | ( | ) |
Requests the ice block to break on water. No score is awarded.
Definition at line 1114 of file d_a_ice.cpp.
Requests the ice block to be broken by a combo attack (e.g. a shell being thrown).
Definition at line 557 of file d_a_ice.cpp.
Like combobreakReq(), but uses the player's combo counter.
Definition at line 579 of file d_a_ice.cpp.
Like combobreakReq(), but uses the stomp combo score.
Definition at line 597 of file d_a_ice.cpp.
Like combobreakReq(), but uses the star combo score.
Definition at line 610 of file d_a_ice.cpp.
| void daIce_c::setBc | ( | ) |
Sets up the tile collision sensors.
Definition at line 623 of file d_a_ice.cpp.
| void daIce_c::setCarryBc | ( | ) |
Sets up the tile collision sensors while the block is being carried.
Definition at line 648 of file d_a_ice.cpp.
| void daIce_c::enlargeBgc | ( | ) |
Enlarges the dynamic collider until it reaches the full size.
Definition at line 679 of file d_a_ice.cpp.
| void daIce_c::enlargeBgcLand | ( | ) |
Enlarges the dynamic collider when not in water.
Definition at line 687 of file d_a_ice.cpp.
| void daIce_c::enlargeBgcWater | ( | ) |
Enlarges the dynamic collider when in water.
Definition at line 705 of file d_a_ice.cpp.
| void daIce_c::enemyAttach | ( | ) |
Moves the parent enemy along with the ice block.
Definition at line 724 of file d_a_ice.cpp.
| void daIce_c::shake | ( | ) |
Shakes the model of the ice block.
Definition at line 729 of file d_a_ice.cpp.
| void daIce_c::normalShake | ( | ) |
Shakes the model left and right.
Definition at line 737 of file d_a_ice.cpp.
| void daIce_c::watertogeShake | ( | ) |
Swings the model left and right with increasing frequency. Used for INIT_WATER_TOGE.
Definition at line 743 of file d_a_ice.cpp.
| void daIce_c::calcFloatAngle | ( | ) |
Tilts the ice block back and forth while floating up.
Definition at line 754 of file d_a_ice.cpp.
| void daIce_c::calcFloatSpeed | ( | ) |
Accelerates the ice block towards mFloatTargetSpeed in the direction it is tilted to.
Definition at line 762 of file d_a_ice.cpp.
| bool daIce_c::checkPushSink | ( | dActor_c * | actor | ) |
Checks whether the given actor should push the ice block down and sets mPushSinkType accordingly.
| actor | The actor to check. |
Definition at line 781 of file d_a_ice.cpp.
| dIceMng_c * daIce_c::getManager | ( | ) |
Gets the ice manager of the parent enemy.
Definition at line 814 of file d_a_ice.cpp.
| bool daIce_c::checkUnderBreak | ( | dActor_c * | actor | ) |
Checks whether a falling block hits a player / Yoshi from above and causes daPlBase_c::DAMAGE_HEAD_BONK.
Definition at line 818 of file d_a_ice.cpp.
| bool daIce_c::checkUpperBreak | ( | dActor_c * | actor | ) |
Checks whether an actor landing on the block breaks it. [Always false].
Definition at line 835 of file d_a_ice.cpp.
Checks whether a thrown block hits a player / Yoshi from the side and causes daPlBase_c::DAMAGE_HIP_ATTACK.
Definition at line 839 of file d_a_ice.cpp.
| void daIce_c::breakEffect | ( | ) |
Plays the break effect.
Definition at line 851 of file d_a_ice.cpp.
| void daIce_c::meltEffect | ( | ) |
Plays the melt effect.
Definition at line 862 of file d_a_ice.cpp.
| void daIce_c::yoganEffect | ( | ) |
Plays the lava splash effect.
Definition at line 1307 of file d_a_ice.cpp.
| void daIce_c::poisonEffect | ( | ) |
Plays the poison splash effect.
Definition at line 1325 of file d_a_ice.cpp.
| bool daIce_c::checkNetIn | ( | ) |
Checks whether the ice block overlaps a climbable fence.
Definition at line 1122 of file d_a_ice.cpp.
| void daIce_c::setCarry | ( | dActor_c * | actor | ) |
Starts being carried by the given actor.
Definition at line 1139 of file d_a_ice.cpp.
| mVec3_c daIce_c::calcCarryPos | ( | ) |
Calculates the position of the block in the carrying player's hands.
Definition at line 1263 of file d_a_ice.cpp.
| BOOL daIce_c::canCarry | ( | ) | const |
Checks whether the ice block can currently be picked up.
Definition at line 1279 of file d_a_ice.cpp.
| bool daIce_c::checkPlHasami | ( | int * | plrNo | ) |
Returns whether a player is stuck between the ice block and the background collision.
| plrNo | Receives the player number, or -1 if no player is stuck. |
Definition at line 1148 of file d_a_ice.cpp.
| bool daIce_c::checkPlAttach_Head | ( | BOOL * | playerTouchingCeiling | ) |
Returns whether a player is standing on the ice block.
| playerTouchingCeiling | If not nullptr, receives TRUE if the player is also touching the ceiling, else FALSE. |
Definition at line 1164 of file d_a_ice.cpp.
| bool daIce_c::checkPlAttach_Foot | ( | BOOL * | playerTouchingFloor, |
| int * | plrNo ) |
Returns whether a player's head is touching the ice block.
| playerTouchingFloor | If not nullptr, receives TRUE if the player is also touching the floor, else FALSE. |
Definition at line 1182 of file d_a_ice.cpp.
Returns whether a player is touching the given side of the ice block.
| dir | The side of the ice block to check. |
| checkResult | If not nullptr, receives a value of type WallAttachCheckResult_e. |
Definition at line 1206 of file d_a_ice.cpp.
Checks whether the given player is stuck between the ice block and a wall.
| dir | The side of the ice block to check. |
Definition at line 1241 of file d_a_ice.cpp.
| fBaseID_e daIce_c::getParentID | ( | ) |
Gets the ID of the parent enemy.
Definition at line 1299 of file d_a_ice.cpp.
|
inline |
Definition at line 233 of file d_a_ice.hpp.
|
inline |
Definition at line 234 of file d_a_ice.hpp.
Called when another actor's foot sensor touches the ice block.
Definition at line 894 of file d_a_ice.cpp.
Called when another actor's head sensor touches the ice block.
Definition at line 873 of file d_a_ice.cpp.
Called when another actor's wall sensor touches the ice block.
Definition at line 926 of file d_a_ice.cpp.
Returns whether the ice block should push up the actor standing on it.
Definition at line 971 of file d_a_ice.cpp.
Returns whether the ice block should push down the actor below it.
Definition at line 967 of file d_a_ice.cpp.
Returns whether the ice block should push the actor at its side.
Definition at line 975 of file d_a_ice.cpp.
The actor collision callback.
Definition at line 988 of file d_a_ice.cpp.
The actor collision callback in water.
Definition at line 1073 of file d_a_ice.cpp.
|
private |
The shape of the ice block. See IceType_e.
|
private |
If not set, sets FLAG_BREAKABLE.
|
private |
If not set, sets FLAG_CARRYABLE.
|
private |
The tile collision mode. See CollisionMode_e.
|
private |
Whether to not award a score when broken by an earthquake.
|
private |
The initial behavior. See InitType_e.
|
static |
Frozen in place.
Definition at line 213 of file d_a_ice.hpp.
|
static |
Following the parent enemy. [Used for Fuzzies].
Definition at line 214 of file d_a_ice.hpp.
|
static |
Being launched with the parent enemy's speed. [Used for the Pokey segments].
Definition at line 215 of file d_a_ice.hpp.
|
static |
Slowing down after being created underwater.
Definition at line 216 of file d_a_ice.hpp.
|
static |
Being pushed under the water surface.
Definition at line 217 of file d_a_ice.hpp.
|
static |
Floating up to the water surface while tilting back and forth.
Definition at line 218 of file d_a_ice.hpp.
|
static |
Floating back up to the water surface after a small push downwards.
Definition at line 219 of file d_a_ice.hpp.
|
static |
Floating on the water surface.
Definition at line 220 of file d_a_ice.hpp.
|
static |
Floating up to the water surface, variant for spiky enemies.
Definition at line 221 of file d_a_ice.hpp.
|
static |
Floating up slowly while shaking before melting.
Definition at line 222 of file d_a_ice.hpp.
|
static |
Hanging in the air before falling down.
Definition at line 223 of file d_a_ice.hpp.
|
static |
Falling down.
Definition at line 224 of file d_a_ice.hpp.
|
static |
Resting on the ground.
Definition at line 225 of file d_a_ice.hpp.
|
static |
Slowing down after falling into water.
Definition at line 226 of file d_a_ice.hpp.
|
static |
Sinking into lava or poison.
Definition at line 227 of file d_a_ice.hpp.
|
static |
Being carried by a player.
Definition at line 228 of file d_a_ice.hpp.
|
static |
Sliding across the ground after being thrown.
Definition at line 229 of file d_a_ice.hpp.
|
static |
Falling down after being dropped. Breaks on landing.
Definition at line 230 of file d_a_ice.hpp.
|
static |
Breaking apart after the ice block has has melted.
Definition at line 231 of file d_a_ice.hpp.
|
private |
The allocator.
Definition at line 248 of file d_a_ice.hpp.
|
private |
The resource file.
Definition at line 249 of file d_a_ice.hpp.
|
private |
The model.
Definition at line 250 of file d_a_ice.hpp.
|
private |
The texture animation resource file.
Definition at line 251 of file d_a_ice.hpp.
|
private |
The texture animation.
Definition at line 252 of file d_a_ice.hpp.
|
private |
The dynamic collider.
Definition at line 253 of file d_a_ice.hpp.
|
private |
The current dynamic collider size, grows over time.
Definition at line 254 of file d_a_ice.hpp.
|
private |
The amount to increase mCurrBgcSize per frame until the full size is reached.
Definition at line 255 of file d_a_ice.hpp.
|
private |
The foot sensor for tile collision.
Definition at line 256 of file d_a_ice.hpp.
|
private |
The head sensor for tile collision.
Definition at line 257 of file d_a_ice.hpp.
|
private |
The wall sensor for tile collision.
Definition at line 258 of file d_a_ice.hpp.
|
private |
The offset to the parent actor.
Definition at line 259 of file d_a_ice.hpp.
|
private |
The position at creation.
Definition at line 260 of file d_a_ice.hpp.
|
private |
The position of the model, including the shake offset.
Definition at line 261 of file d_a_ice.hpp.
|
private |
The position on the previous frame.
Definition at line 262 of file d_a_ice.hpp.
|
private |
The size of the ice block.
Definition at line 263 of file d_a_ice.hpp.
|
private |
How the block got pushed under the water surface.
Definition at line 265 of file d_a_ice.hpp.
|
private |
The player number of the player carrying the ice block.
Definition at line 267 of file d_a_ice.hpp.
|
private |
The target speed when floating.
Definition at line 269 of file d_a_ice.hpp.
|
private |
The acceleration towards mFloatTargetSpeed.
Definition at line 270 of file d_a_ice.hpp.
|
private |
The current angle while floating up.
Definition at line 271 of file d_a_ice.hpp.
|
private |
Definition at line 272 of file d_a_ice.hpp.
|
private |
Added to the X speed while floating.
Definition at line 273 of file d_a_ice.hpp.
|
private |
Whether the ice block should shake.
Definition at line 275 of file d_a_ice.hpp.
|
private |
The angular speed of mShakeRotAngle.
Definition at line 276 of file d_a_ice.hpp.
|
private |
The current angle of the swinging motion.
Definition at line 277 of file d_a_ice.hpp.
|
private |
The maximum rotation of the swinging motion.
Definition at line 278 of file d_a_ice.hpp.
|
private |
Definition at line 280 of file d_a_ice.hpp.
|
private |
Whether the block was created in water.
Definition at line 282 of file d_a_ice.hpp.
|
private |
Counter for bobbing up and down on the water surface.
Definition at line 283 of file d_a_ice.hpp.
|
private |
The height of the water surface.
Definition at line 284 of file d_a_ice.hpp.
|
private |
The state of the water surface, used in StateID_FloatWait.
Definition at line 285 of file d_a_ice.hpp.
|
private |
The Y position where the block started falling, used to check whether the block falls far enough to break.
Definition at line 287 of file d_a_ice.hpp.
|
private |
Countdown until the collision is fully activated.
Definition at line 288 of file d_a_ice.hpp.
|
private |
A general purpose timer.
Definition at line 289 of file d_a_ice.hpp.
|
private |
Value is a FLAG_e.
Definition at line 290 of file d_a_ice.hpp.
|
private |
Whether the ice block should break.
Definition at line 291 of file d_a_ice.hpp.
|
private |
The X position before running execute().
Definition at line 292 of file d_a_ice.hpp.
|
private |
|
private |
|
private |
The ice manager.
Definition at line 297 of file d_a_ice.hpp.
|
private |
The ice effect maker.
Definition at line 298 of file d_a_ice.hpp.
|
staticprivate |
Definition at line 307 of file d_a_ice.hpp.