#include <Bg.h>
Classes | |
| struct | DecorationInfo |
| struct | Gust |
Public Types | |
| enum | GustType : u8 { cGustType_Invalid = 0 , cGustType_1 = 1 , cGustType_2 = 2 , cGustType_Spin = 3 , cGustType_Run = 4 } |
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 | setUnit (u16 x, u16 y, u32 file, u8 layer, u16 unit) |
| void | setUnitCurrentCdFile (u16 x, u16 y, u8 layer, u16 unit) |
| void | setWaterInWave (const sead::Vector2f &pos, u8 wave_scale) |
| u8 | getNextFlowerIndex () |
| void | registerGrass (f32 x, f32 y, f32 z, u8, u8 index, u8) |
| void | registerFlower (f32 x, f32 y, f32 z, u8 color, u8 index, u8) |
| void | registerButterfly (f32 x, f32 y, f32 z, u8, u8 index, u8) |
| void | updateFlower (f32 x, f32 y, u8 index, bool enabled) |
| void | deleteFlower (u8 index) |
| void | registerGust (GustType type, const sead::Vector3f &pos, u8, s8 direction) |
| s8 | checkGust (GustType type, const sead::Vector3f &pos, f32 *dist) |
| Checks for gusts of wind caused by players affecting grass/flowers. | |
| f32 | getWaveSurfaceX (s32 index) const |
| f32 | getWaveSurfaceY (s32 index) const |
| DecorationInfo & | getGrassDecorationInfo (u32 index) |
| DecorationInfo & | getFlowerDecorationInfo (u32 index) |
| DecorationInfo & | getButterflyDecorationInfo (u32 index) |
| u32 | getFlowerCount () const |
| u8 | getFlowerType () const |
| void | setFlowerType (u8 type) |
| BgDeco & | getBgDeco () |
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) |
Private Attributes | |
| u32 | _10 |
| f32 | _14 |
| f32 | _18 |
| f32 | mWaveSurfaceX [1280] |
| f32 | mWaveSurfaceY [1280] |
| bool | mHasLavaWaves |
| bool | mHasTerrain |
| u32 | _2820 |
| u8 | _2824 [0x558] |
| u8 | _2d7c [0x558] |
| u8 | _32d4 [0x88] |
| u8 | _335c [800] |
| u8 | _367c [100] |
| u8 | _36e0 [100] |
| u32 | _3744 [100] |
| DecorationInfo * | mGrassDecorationInfo |
| DecorationInfo * | mFlowerDecorationInfo |
| DecorationInfo * | mButterflyDecorationInfo |
| u32 | mFlowerNo |
| Gust | mGust [40] |
| sead::Vector2f | mFlowerPositions [100] |
| u8 | _3f24 [100] |
| u32 | _3f88 |
| u8 | mFlowerType |
| bool | mHasFlowers |
| BgDeco | mBgDeco |
| u8 | _7e20 [0x1D64] |
| enum Bg::GustType : u8 |
| Bg::Bg | ( | ) |
|
virtual |
|
static |
|
static |
| u64 Bg::getBgCheckData | ( | u16 | x, |
| u16 | y, | ||
| u8 | layer, | ||
| bool | with_p_sw = true ) |
|
inline |
| BgUnitCode::HitType Bg::getUnitHitType | ( | u16 | x, |
| u16 | y, | ||
| u8 | layer ) |
|
inline |
| BgUnitCode::Type Bg::getUnitType | ( | u16 | x, |
| u16 | y, | ||
| u8 | layer ) |
|
inline |
| BgUnitCode::TypeInfo Bg::getUnitTypeInfo | ( | u16 | x, |
| u16 | y, | ||
| u8 | layer ) |
|
inline |
| void Bg::setUnit | ( | u16 | x, |
| u16 | y, | ||
| u32 | file, | ||
| u8 | layer, | ||
| u16 | unit ) |
| void Bg::setUnitCurrentCdFile | ( | u16 | x, |
| u16 | y, | ||
| u8 | layer, | ||
| u16 | unit ) |
| void Bg::setWaterInWave | ( | const sead::Vector2f & | pos, |
| u8 | wave_scale ) |
| u8 Bg::getNextFlowerIndex | ( | ) |
| void Bg::registerGrass | ( | f32 | x, |
| f32 | y, | ||
| f32 | z, | ||
| u8 | , | ||
| u8 | index, | ||
| u8 | ) |
| void Bg::registerFlower | ( | f32 | x, |
| f32 | y, | ||
| f32 | z, | ||
| u8 | color, | ||
| u8 | index, | ||
| u8 | ) |
| void Bg::registerButterfly | ( | f32 | x, |
| f32 | y, | ||
| f32 | z, | ||
| u8 | , | ||
| u8 | index, | ||
| u8 | ) |
| void Bg::updateFlower | ( | f32 | x, |
| f32 | y, | ||
| u8 | index, | ||
| bool | enabled ) |
| void Bg::deleteFlower | ( | u8 | index | ) |
| void Bg::registerGust | ( | GustType | type, |
| const sead::Vector3f & | pos, | ||
| u8 | , | ||
| s8 | direction ) |
| s8 Bg::checkGust | ( | GustType | type, |
| const sead::Vector3f & | pos, | ||
| f32 * | dist ) |
Checks for gusts of wind caused by players affecting grass/flowers.
0 for nothing, otherwise -1 or 1 for left and right respectively.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |