mirror of
https://github.com/zeldaret/tmc
synced 2026-06-07 20:11:29 -04:00
+2
-2
@@ -12,8 +12,8 @@ void PositionEntityOnTop(Entity*, Entity*);
|
||||
void PositionRelative(Entity*, Entity*, s32, s32);
|
||||
void CopyPositionAndSpriteOffset(Entity* param_1, Entity* param_2);
|
||||
void sub_0806FA90(Entity*, Entity*, s32, s32);
|
||||
void ResolveEntityOnTop(Entity*, Entity*);
|
||||
void ResolveEntityBelow(Entity*, Entity*);
|
||||
void SortEntityAbove(Entity*, Entity*);
|
||||
void SortEntityBelow(Entity*, Entity*);
|
||||
|
||||
u32 sub_0806F5A4(u32 idx);
|
||||
u32 sub_0806F3E4(Entity*);
|
||||
|
||||
+4
-4
@@ -160,14 +160,14 @@ typedef struct Entity_ {
|
||||
/*0x1d*/ u8 field_0x1d;
|
||||
/*0x1e*/ u8 frameIndex;
|
||||
/*0x1f*/ u8 lastFrameIndex;
|
||||
/*0x20*/ s32 zVelocity; /**< Z axis speed. */
|
||||
/*0x20*/ s32 zVelocity; /**< Z axis speed, measured in px/frame */
|
||||
/*0x24*/ s16 speed; /**< Magnitude of speed. */
|
||||
/*0x26*/ u8 spriteAnimation[3];
|
||||
/*0x29*/ SpritePriority spritePriority;
|
||||
/*0x2a*/ u16 collisions;
|
||||
/*0x2c*/ union SplitWord x; /**< X position, fixed point. */
|
||||
/*0x30*/ union SplitWord y; /**< Y position, fixed point. */
|
||||
/*0x34*/ union SplitWord z; /**< Z position, fixed point. */
|
||||
/*0x2c*/ union SplitWord x; /**< X position, fixed point Q16.16. */
|
||||
/*0x30*/ union SplitWord y; /**< Y position, fixed point Q16.16. */
|
||||
/*0x34*/ union SplitWord z; /**< Z position, fixed point Q16.16. */
|
||||
/*0x38*/ u8 collisionLayer; /**< Collision layer. */
|
||||
/*0x39*/ s8 interactType;
|
||||
/*0x3a*/ u8 field_0x3a;
|
||||
|
||||
+2
-2
@@ -96,7 +96,7 @@ extern u32 sub_0805F8F8(u32);
|
||||
extern u32 sub_0805F7A0(u32);
|
||||
extern u32* sub_0805F25C(u32);
|
||||
u32 sub_0806FCB8(Entity*, u32, u32, u32);
|
||||
extern void sub_0806F62C(Entity*, u32, u32);
|
||||
extern void LinearMoveAngle(Entity*, u32, u32);
|
||||
extern void sub_080A1ED0(u32, u32, u32);
|
||||
extern u32 sub_0806F5B0(u32);
|
||||
extern void sub_08078790(Entity*, u32);
|
||||
@@ -125,7 +125,7 @@ extern bool32 sub_080806BC(u32, u32, u32, u32);
|
||||
extern bool32 sub_0806FC80(Entity*, Entity*, s32);
|
||||
extern u32 sub_080002B4(Entity*, u32, u32);
|
||||
extern u32 sub_080AF134(Entity*);
|
||||
extern void sub_0806F5BC(Entity*, u32, u32);
|
||||
extern void LinearMoveDirection(Entity*, u32, u32);
|
||||
extern void sub_080A2AF4(Entity*, u32, u32);
|
||||
extern u32 sub_080002CC(Entity*, s32, s32);
|
||||
extern bool32 sub_0807BD14(Entity*, u32);
|
||||
|
||||
+2
-2
@@ -59,8 +59,8 @@
|
||||
// Converts a number to Q8.8 fixed-point format
|
||||
#define Q_8_8(n) ((s16)((n)*256))
|
||||
|
||||
// Converts a number to Q4.12 fixed-point format
|
||||
#define Q_4_12(n) ((s16)((n)*4096))
|
||||
// Converts a number to Q16.16 fixed-point format
|
||||
#define Q_16_16(n) ((s32)((n) * (1 << 16)))
|
||||
|
||||
#define min(a, b) ((a) < (b) ? (a) : (b))
|
||||
#define max(a, b) ((a) >= (b) ? (a) : (b))
|
||||
|
||||
Reference in New Issue
Block a user