NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_coin.hpp
1#pragma once
2#include <types.h>
3#include <game/mLib/m_angle.hpp>
4
5/// @brief Controls the rotating animation for coins.
6/// @details Also contains unused logic for controlling brick block and question block animations.
7/// @ingroup bases
8class dCoin_c {
9public:
10 static int execute(); ///< Executes coin rotation.
11
12 static mAng3_c getShapeAngle() { return m_h_shapeAngle; }
13private:
14 static const int COIN_FRAME_COUNT = 64; ///< The coin rotation animation frame count.
15 static mAng3_c m_shapeAngle; ///< The rotation to be applied to every coin.
16 static mAng3_c m_h_shapeAngle; ///< @unused
17 static u8 m_frame; ///< The coin rotation animation frame.
18 static u8 m_ptn_no; ///< The current animated tile frame for coins. @unused
19 static u8 m_h_ptn_no; ///< The current animated tile frame for question blocks. @unused
20 static u8 m_h_ptn_time; ///< The remaining time for the current question block tile frame. @unused
21 static u8 m_b_ptn_no; ///< The current animated tile frame for brick blocks. @unused
22 static u8 m_b_ptn_time; ///< The remaining time for the current brick block tile frame. @unused
23};
Controls the rotating animation for coins.
Definition d_coin.hpp:8
static int execute()
Executes coin rotation.
Definition d_coin.cpp:12
static u8 m_b_ptn_time
The remaining time for the current brick block tile frame.
Definition d_coin.hpp:22
static u8 m_frame
The coin rotation animation frame.
Definition d_coin.hpp:17
static u8 m_h_ptn_no
The current animated tile frame for question blocks.
Definition d_coin.hpp:19
static u8 m_b_ptn_no
The current animated tile frame for brick blocks.
Definition d_coin.hpp:21
static u8 m_ptn_no
The current animated tile frame for coins.
Definition d_coin.hpp:18
static mAng3_c m_h_shapeAngle
Definition d_coin.hpp:16
static mAng3_c m_shapeAngle
The rotation to be applied to every coin.
Definition d_coin.hpp:15
static u8 m_h_ptn_time
The remaining time for the current question block tile frame.
Definition d_coin.hpp:20
static const int COIN_FRAME_COUNT
The coin rotation animation frame count.
Definition d_coin.hpp:14
A three-dimensional short angle vector.
Definition m_angle.hpp:59