Alchemy
Loading...
Searching...
No Matches

WhirlwindOrbit Struct Reference

A FieldActor seen with the halfword at 0x64 unsigned and the one at 0x66 signed, as the bytes read them (FieldActor's own types change the code). More...

Data Fields

u8 unk00 [6]
u16 angle
 heading or orbit angle, in 1/65536 turns
s32 x
 16.16 pixels
s32 y
 16.16 pixels
s32 z
 16.16 pixels
u8 unk14 [20]
s32 velocityY
 applied by the engine, in 16.16 pixels per frame
u8 unk2c [28]
s32 gravity
 vertical deceleration, in 16.16 pixels per frame squared
u8 unk4c [24]
u16 timer
 frames so far
s16 pause
 frames left of a sharp turn
struct WhirlwindOrbit * anchor
 orb at the centre of the orbit
void(*) update (union FieldObject *object)
 engine's per-frame callback

Detailed Description

A FieldActor seen with the halfword at 0x64 unsigned and the one at 0x66 signed, as the bytes read them (FieldActor's own types change the code).

Whirlwind particles (object 0xf9) use this view.

Definition at line 23 of file whirlwind.c.

Field Documentation

◆ unk00

u8 WhirlwindOrbit::unk00[6]

Definition at line 24 of file whirlwind.c.

◆ angle

u16 WhirlwindOrbit::angle

heading or orbit angle, in 1/65536 turns

Definition at line 25 of file whirlwind.c.

Referenced by BattleFx_CircleAnchor(), and BattleFx_WanderAroundAnchor().

◆ x

s32 WhirlwindOrbit::x

16.16 pixels

Definition at line 26 of file whirlwind.c.

Referenced by BattleFx_CircleAnchor(), and BattleFx_WanderAroundAnchor().

◆ y

s32 WhirlwindOrbit::y

16.16 pixels

Definition at line 27 of file whirlwind.c.

◆ z

s32 WhirlwindOrbit::z

16.16 pixels

Definition at line 28 of file whirlwind.c.

Referenced by BattleFx_CircleAnchor(), and BattleFx_WanderAroundAnchor().

◆ unk14

u8 WhirlwindOrbit::unk14[20]

Definition at line 29 of file whirlwind.c.

◆ velocityY

s32 WhirlwindOrbit::velocityY

applied by the engine, in 16.16 pixels per frame

Definition at line 30 of file whirlwind.c.

Referenced by BattleFx_CircleAnchor().

◆ unk2c

u8 WhirlwindOrbit::unk2c[28]

Definition at line 31 of file whirlwind.c.

◆ gravity

s32 WhirlwindOrbit::gravity

vertical deceleration, in 16.16 pixels per frame squared

Definition at line 32 of file whirlwind.c.

Referenced by BattleFx_CircleAnchor().

◆ unk4c

u8 WhirlwindOrbit::unk4c[24]

Definition at line 33 of file whirlwind.c.

◆ timer

u16 WhirlwindOrbit::timer

frames so far

Definition at line 34 of file whirlwind.c.

Referenced by BattleFx_CircleAnchor(), and BattleFx_WanderAroundAnchor().

◆ pause

s16 WhirlwindOrbit::pause

frames left of a sharp turn

Definition at line 35 of file whirlwind.c.

Referenced by BattleFx_CircleAnchor(), and BattleFx_WanderAroundAnchor().

◆ anchor

struct WhirlwindOrbit* WhirlwindOrbit::anchor

orb at the centre of the orbit

Definition at line 36 of file whirlwind.c.

Referenced by BattleFx_CircleAnchor().

◆ update

void(*) WhirlwindOrbit::update(union FieldObject *object)

engine's per-frame callback

Definition at line 37 of file whirlwind.c.

Referenced by BattleFx_CircleAnchor().