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

#include <game/bases/d_coin.hpp>

Description

Controls the rotating animation for coins.

Also contains unused logic for controlling brick block and question block animations.

Definition at line 8 of file d_coin.hpp.

Static Public Member Functions

static int execute ()
 Executes coin rotation.
static mAng3_c getShapeAngle ()

Static Private Attributes

static const int COIN_FRAME_COUNT = 64
 The coin rotation animation frame count.
static mAng3_c m_shapeAngle
 The rotation to be applied to every coin.
static mAng3_c m_h_shapeAngle
static u8 m_frame
 The coin rotation animation frame.
static u8 m_ptn_no
 The current animated tile frame for coins.
static u8 m_h_ptn_no
 The current animated tile frame for question blocks.
static u8 m_h_ptn_time
 The remaining time for the current question block tile frame.
static u8 m_b_ptn_no
 The current animated tile frame for brick blocks.
static u8 m_b_ptn_time
 The remaining time for the current brick block tile frame.

Member Function Documentation

◆ execute()

int dCoin_c::execute ( )
static

Executes coin rotation.

Definition at line 12 of file d_coin.cpp.

◆ getShapeAngle()

mAng3_c dCoin_c::getShapeAngle ( )
inlinestatic

Definition at line 12 of file d_coin.hpp.

Member Data Documentation

◆ COIN_FRAME_COUNT

const int dCoin_c::COIN_FRAME_COUNT = 64
staticprivate

The coin rotation animation frame count.

Definition at line 14 of file d_coin.hpp.

◆ m_shapeAngle

mAng3_c dCoin_c::m_shapeAngle
staticprivate

The rotation to be applied to every coin.

Definition at line 15 of file d_coin.hpp.

◆ m_h_shapeAngle

mAng3_c dCoin_c::m_h_shapeAngle
staticprivate

Definition at line 16 of file d_coin.hpp.

◆ m_frame

u8 dCoin_c::m_frame
staticprivate

The coin rotation animation frame.

Definition at line 17 of file d_coin.hpp.

◆ m_ptn_no

u8 dCoin_c::m_ptn_no
staticprivate

The current animated tile frame for coins.

Definition at line 18 of file d_coin.hpp.

◆ m_h_ptn_no

u8 dCoin_c::m_h_ptn_no
staticprivate

The current animated tile frame for question blocks.

Definition at line 19 of file d_coin.hpp.

◆ m_h_ptn_time

u8 dCoin_c::m_h_ptn_time
staticprivate

The remaining time for the current question block tile frame.

Definition at line 20 of file d_coin.hpp.

◆ m_b_ptn_no

u8 dCoin_c::m_b_ptn_no
staticprivate

The current animated tile frame for brick blocks.

Definition at line 21 of file d_coin.hpp.

◆ m_b_ptn_time

u8 dCoin_c::m_b_ptn_time
staticprivate

The remaining time for the current brick block tile frame.

Definition at line 22 of file d_coin.hpp.