mirror of
https://github.com/zeldaret/mm.git
synced 2026-09-02 01:42:45 -04:00
Defines for flags passed to Actor_UpdateBgCheckInfo (#1197)
* add flags * add comment * small fix --------- Co-authored-by: angie <angheloalf95@gmail.com>
This commit is contained in:
+1
-1
@@ -667,7 +667,7 @@ s32 Actor_IsFacingAndNearPlayer(Actor* actor, f32 range, s16 maxAngleDiff);
|
||||
s32 Actor_ActorAIsFacingAndNearActorB(Actor* actorA, Actor* actorB, f32 range, s16 maxAngleDiff);
|
||||
|
||||
void Actor_GetSlopeDirection(CollisionPoly* floorPoly, Vec3f* slopeNormal, s16* downwardSlopeYaw);
|
||||
void Actor_UpdateBgCheckInfo(PlayState* play, Actor* actor, f32 wallCheckHeight, f32 wallCheckRadius, f32 ceilingCheckHeight, u32 flags);
|
||||
void Actor_UpdateBgCheckInfo(PlayState* play, Actor* actor, f32 wallCheckHeight, f32 wallCheckRadius, f32 ceilingCheckHeight, u32 updBgCheckInfoFlags);
|
||||
Hilite* Hilite_DrawOpa(Vec3f* object, Vec3f* eye, Vec3f* lightDir, GraphicsContext* gfxCtx);
|
||||
void func_800B8050(Actor* actor, PlayState* play, s32 flag);
|
||||
void func_800B8118(Actor* actor, PlayState* play, s32 flag);
|
||||
|
||||
@@ -134,6 +134,7 @@ typedef struct {
|
||||
/* 0x18 */ Vec3f feetPos[2]; // Update by using `Actor_SetFeetPos` in PostLimbDrawOpa
|
||||
} ActorShape; // size = 0x30
|
||||
|
||||
// Flags for bgCheckFlags
|
||||
#define BGCHECKFLAG_GROUND (1 << 0) // Standing on the ground
|
||||
#define BGCHECKFLAG_GROUND_TOUCH (1 << 1) // Has touched the ground (only active for 1 frame)
|
||||
#define BGCHECKFLAG_GROUND_LEAVE (1 << 2) // Has left the ground (only active for 1 frame)
|
||||
@@ -148,6 +149,20 @@ typedef struct {
|
||||
#define BGCHECKFLAG_PLAYER_800 (1 << 11) //
|
||||
#define BGCHECKFLAG_PLAYER_1000 (1 << 12) //
|
||||
|
||||
// Flags for Actor_UpdateBgCheckInfo
|
||||
#define UPDBGCHECKINFO_FLAG_1 (1 << 0) // check wall
|
||||
#define UPDBGCHECKINFO_FLAG_2 (1 << 1) // check ceiling
|
||||
#define UPDBGCHECKINFO_FLAG_4 (1 << 2) // check floor and water
|
||||
#define UPDBGCHECKINFO_FLAG_8 (1 << 3)
|
||||
#define UPDBGCHECKINFO_FLAG_10 (1 << 4)
|
||||
#define UPDBGCHECKINFO_FLAG_20 (1 << 5) // unused
|
||||
#define UPDBGCHECKINFO_FLAG_40 (1 << 6) // disable water ripples
|
||||
#define UPDBGCHECKINFO_FLAG_80 (1 << 7)
|
||||
#define UPDBGCHECKINFO_FLAG_100 (1 << 8)
|
||||
#define UPDBGCHECKINFO_FLAG_200 (1 << 9)
|
||||
#define UPDBGCHECKINFO_FLAG_400 (1 << 10) // check water
|
||||
#define UPDBGCHECKINFO_FLAG_800 (1 << 11)
|
||||
|
||||
typedef struct Actor {
|
||||
/* 0x000 */ s16 id; // Actor ID
|
||||
/* 0x002 */ u8 category; // Actor category. Refer to the corresponding enum for values
|
||||
|
||||
Reference in New Issue
Block a user