NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
dCc_c::CcData_s Struct Reference

#include <game/bases/d_cc.hpp>

Description

A structure that contains information about a collider.

Unofficial name.

Definition at line 78 of file d_cc.hpp.

Public Attributes

float mOffsetX
 The X offset of the collider.
 
float mOffsetY
 The Y offset of the collider.
 
float mWidth
 The width of the collider.
 
float mHeight
 The height of the collider.
 
u8 mCategory
 The category of this collider. See CC_CATEGORY_e .
 
u8 mAttackCategory
 The attack category of this collider. See CC_ATTACK_e .
 
u32 mCategoryInteract
 Which categories this collider should be able to collide with.
 
u32 mAttackCategoryInteract
 Which attack categories this collider should be able to receive.
 
u16 mFlag
 Flags for this collider. See CC_DATA_FLAG_e .
 
void(* mCallback )(dCc_c *, dCc_c *)
 The callback to execute when a collision occurs.
 

Member Data Documentation

◆ mOffsetX

float dCc_c::CcData_s::mOffsetX

The X offset of the collider.

Definition at line 79 of file d_cc.hpp.

◆ mOffsetY

float dCc_c::CcData_s::mOffsetY

The Y offset of the collider.

Definition at line 80 of file d_cc.hpp.

◆ mWidth

float dCc_c::CcData_s::mWidth

The width of the collider.

Note: This is the distance from the center to the edge, so half the actual width.

Definition at line 87 of file d_cc.hpp.

◆ mHeight

float dCc_c::CcData_s::mHeight

The height of the collider.

Note: This is the distance from the center to the edge, so half the actual height.

Definition at line 94 of file d_cc.hpp.

◆ mCategory

u8 dCc_c::CcData_s::mCategory

The category of this collider. See CC_CATEGORY_e .

Definition at line 96 of file d_cc.hpp.

◆ mAttackCategory

u8 dCc_c::CcData_s::mAttackCategory

The attack category of this collider. See CC_ATTACK_e .

Definition at line 97 of file d_cc.hpp.

◆ mCategoryInteract

u32 dCc_c::CcData_s::mCategoryInteract

Which categories this collider should be able to collide with.

This is a bitfield with the bits enumerated by CC_CATEGORY_e .

Definition at line 103 of file d_cc.hpp.

◆ mAttackCategoryInteract

u32 dCc_c::CcData_s::mAttackCategoryInteract

Which attack categories this collider should be able to receive.

This is a bitfield with the bits enumerated by CC_ATTACK_e .

Definition at line 109 of file d_cc.hpp.

◆ mFlag

u16 dCc_c::CcData_s::mFlag

Flags for this collider. See CC_DATA_FLAG_e .

Definition at line 111 of file d_cc.hpp.

◆ mCallback

void(* dCc_c::CcData_s::mCallback) (dCc_c *, dCc_c *)

The callback to execute when a collision occurs.

Definition at line 113 of file d_cc.hpp.