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

Description

Definition at line 7 of file d_bg_parameter.hpp.

Public Types

enum  BG_SCROLL_DIR_X_e {
  BG_SCROLL_X_NONE ,
  BG_SCROLL_X_LEFT ,
  BG_SCROLL_X_RIGHT
}
enum  BG_SCROLL_DIR_Y_e {
  BG_SCROLL_Y_NONE ,
  BG_SCROLL_Y_DOWN ,
  BG_SCROLL_Y_UP
}

Public Member Functions

const mVec2_cpos () const
const mVec2_csize () const
float xStart () const
float yStart () const
float xSize () const
float ySize () const
float xEnd () const
float yEnd () const
void getBounds (float &startX, float &startY, float &endX, float &endY) const
bool check (float y, float offset)

Static Public Member Functions

static dBgParameter_cgetInstance ()

Public Attributes

u8 mPad1 [0x38]
mVec2_c mPos
mVec2_c mSize
u8 mPad2 [0x38]
u8 mScrollDirX
 See BG_SCROLL_DIR_X_e.
u8 mScrollDirY
 See BG_SCROLL_DIR_Y_e.

Static Public Attributes

static dBgParameter_cms_Instance_p

Member Enumeration Documentation

◆ BG_SCROLL_DIR_X_e

Definition at line 10 of file d_bg_parameter.hpp.

◆ BG_SCROLL_DIR_Y_e

Definition at line 17 of file d_bg_parameter.hpp.

Member Function Documentation

◆ pos()

const mVec2_c & dBgParameter_c::pos ( ) const
inline

Definition at line 30 of file d_bg_parameter.hpp.

◆ size()

const mVec2_c & dBgParameter_c::size ( ) const
inline

Definition at line 31 of file d_bg_parameter.hpp.

◆ xStart()

float dBgParameter_c::xStart ( ) const
inline

Definition at line 33 of file d_bg_parameter.hpp.

◆ yStart()

float dBgParameter_c::yStart ( ) const
inline

Definition at line 34 of file d_bg_parameter.hpp.

◆ xSize()

float dBgParameter_c::xSize ( ) const
inline

Definition at line 35 of file d_bg_parameter.hpp.

◆ ySize()

float dBgParameter_c::ySize ( ) const
inline

Definition at line 36 of file d_bg_parameter.hpp.

◆ xEnd()

float dBgParameter_c::xEnd ( ) const
inline

Definition at line 37 of file d_bg_parameter.hpp.

◆ yEnd()

float dBgParameter_c::yEnd ( ) const
inline

Definition at line 38 of file d_bg_parameter.hpp.

◆ getBounds()

void dBgParameter_c::getBounds ( float & startX,
float & startY,
float & endX,
float & endY ) const
inline

Definition at line 40 of file d_bg_parameter.hpp.

◆ check()

bool dBgParameter_c::check ( float y,
float offset )
inline

Definition at line 47 of file d_bg_parameter.hpp.

◆ getInstance()

dBgParameter_c * dBgParameter_c::getInstance ( )
inlinestatic

Definition at line 51 of file d_bg_parameter.hpp.

Member Data Documentation

◆ mPad1

u8 dBgParameter_c::mPad1[0x38]

Definition at line 23 of file d_bg_parameter.hpp.

◆ mPos

mVec2_c dBgParameter_c::mPos

Definition at line 24 of file d_bg_parameter.hpp.

◆ mSize

mVec2_c dBgParameter_c::mSize

Definition at line 25 of file d_bg_parameter.hpp.

◆ mPad2

u8 dBgParameter_c::mPad2[0x38]

Definition at line 26 of file d_bg_parameter.hpp.

◆ mScrollDirX

u8 dBgParameter_c::mScrollDirX

See BG_SCROLL_DIR_X_e.

Definition at line 27 of file d_bg_parameter.hpp.

◆ mScrollDirY

u8 dBgParameter_c::mScrollDirY

See BG_SCROLL_DIR_Y_e.

Definition at line 28 of file d_bg_parameter.hpp.

◆ ms_Instance_p

dBgParameter_c* dBgParameter_c::ms_Instance_p
static

Definition at line 53 of file d_bg_parameter.hpp.