New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
Bg Class Reference

#include <Bg.h>

Public Member Functions

 Bg ()
virtual ~Bg ()
u64 getBgCheckData (u16 x, u16 y, u8 layer, bool with_p_sw=true)
u64 getBgCheckData (f32 x, f32 y, u8 layer, bool with_p_sw=true)
BgUnitCode::HitType getUnitHitType (u16 x, u16 y, u8 layer)
BgUnitCode::HitType getUnitHitType (f32 x, f32 y, u8 layer)
BgUnitCode::Type getUnitType (u16 x, u16 y, u8 layer)
BgUnitCode::Type getUnitType (f32 x, f32 y, u8 layer)
BgUnitCode::TypeInfo getUnitTypeInfo (u16 x, u16 y, u8 layer)
BgUnitCode::TypeInfo getUnitTypeInfo (f32 x, f32 y, u8 layer)
void setWaterInWave (const sead::Vector2f &pos, u8 wave_scale)

Static Public Member Functions

static u16 * getUnit (u16 x, u16 y, u32 file, u8 layer, s32 *block_idx=nullptr)
static u16 * getUnitCurrentCdFile (u16 x, u16 y, u8 layer, s32 *block_idx=nullptr)

Constructor & Destructor Documentation

◆ Bg()

Bg::Bg ( )

◆ ~Bg()

virtual Bg::~Bg ( )
virtual

Member Function Documentation

◆ getUnit()

u16 * Bg::getUnit ( u16 x,
u16 y,
u32 file,
u8 layer,
s32 * block_idx = nullptr )
static

◆ getUnitCurrentCdFile()

u16 * Bg::getUnitCurrentCdFile ( u16 x,
u16 y,
u8 layer,
s32 * block_idx = nullptr )
static

◆ getBgCheckData() [1/2]

u64 Bg::getBgCheckData ( u16 x,
u16 y,
u8 layer,
bool with_p_sw = true )

◆ getBgCheckData() [2/2]

u64 Bg::getBgCheckData ( f32 x,
f32 y,
u8 layer,
bool with_p_sw = true )
inline

◆ getUnitHitType() [1/2]

BgUnitCode::HitType Bg::getUnitHitType ( u16 x,
u16 y,
u8 layer )

◆ getUnitHitType() [2/2]

BgUnitCode::HitType Bg::getUnitHitType ( f32 x,
f32 y,
u8 layer )
inline

◆ getUnitType() [1/2]

BgUnitCode::Type Bg::getUnitType ( u16 x,
u16 y,
u8 layer )

◆ getUnitType() [2/2]

BgUnitCode::Type Bg::getUnitType ( f32 x,
f32 y,
u8 layer )
inline

◆ getUnitTypeInfo() [1/2]

BgUnitCode::TypeInfo Bg::getUnitTypeInfo ( u16 x,
u16 y,
u8 layer )

◆ getUnitTypeInfo() [2/2]

BgUnitCode::TypeInfo Bg::getUnitTypeInfo ( f32 x,
f32 y,
u8 layer )
inline

◆ setWaterInWave()

void Bg::setWaterInWave ( const sead::Vector2f & pos,
u8 wave_scale )