struct ORBITING_MAP_ACTOR
A floating Nut's actor: its position, the spot it sways around and how far through the sway it is, its sprite and its update function.
Declared in orbit.h.
Fields
| Name | Description | |
|---|---|---|
const Sint32 * | script | |
Sint16 | scriptCursor | |
Uint16 | facing | |
FIXED | x | Its position, in 16.16 fixed-point pixels. |
FIXED | y | |
FIXED | z | |
Sint32 | groundHeight | |
Sint32 | scaleX | |
Sint32 | scaleY | |
Uint16 | radius | |
Uint8 | layer | |
Uint8 | priorityFlags | scFloatNut clears ACTOR_PRIORITY_AUTOMATIC. |
Sint32 | velocityX | |
Sint32 | velocityY | |
Sint32 | velocityZ | |
Sint32 | orbitAngle | How far through the sway, in 1/65536 |
Sint32 | acceleration | turns (ACTOR's speedLimit); scUpdateFloatingNut moves it on by TRIG_TURN / 64 and two random steps each tick. |
FIXED | orbitCenterX | The spot the Nut sways round, in 16.16 fixed-point pixels (ACTOR's targetX to targetZ). |
FIXED | orbitCenterY | |
FIXED | orbitCenterZ | |
Sint32 | bounce | |
Sint32 | gravity | |
Sint32 | sceneWord | |
ORBITING_MAP_ACTOR_SPR * | sprite | |
Uint8 | spriteStorageKind | |
Uint8 | motionFlags | |
Uint8 | arrivalAxis | The axis watched for arrival; scFloatNut zeroes it. |
Uint8 | conditionResult | |
Uint8 | snapToTarget | |
Uint8 | collisionFlags | |
Uint8 | steeringFlags | |
Uint8 | paused | |
Uint8 | retainSpriteCache | Set, so the icon's VRAM cache entry is kept while sprites are suspended or the Nut is off screen. |
Uint8 | repeatCount | |
Sint16 | wait | |
Uint8 | refused | |
Uint8 | frozen | Set, so steering, terrain, gravity and floating leave the Nut to its callback. |
Uint8 | sceneCount | |
Uint8 | sceneByte | |
Sint16 | timer | |
Sint16 | userValue | |
struct ACTOR * | watchedActor | |
Uint32 | callback | scUpdateFloatingNut, run each tick. |
Description
A floating Nut's actor: its position, the spot it sways around and how far through the sway it is, its sprite and its update function.
struct ORBITING_MAP_ACTOR
Referenced by scFloatNut(), scKalayPrepareTown(), scKalayUpdateNutOrbit() and scUpdateFloatingNut().
Definition at line 52 of file orbit.h.
Fields in detail
script
const Sint32 *script
scriptCursor
Sint16 scriptCursor
facing
Uint16 facing
x
FIXED x
Its position, in 16.16 fixed-point pixels.
y
FIXED y
z
FIXED z
groundHeight
Sint32 groundHeight
scaleX
Sint32 scaleX
scaleY
Sint32 scaleY
radius
Uint16 radius
layer
Uint8 layer
priorityFlags
Uint8 priorityFlags
scFloatNut clears ACTOR_PRIORITY_AUTOMATIC.
velocityX
Sint32 velocityX
velocityY
Sint32 velocityY
velocityZ
Sint32 velocityZ
orbitAngle
Sint32 orbitAngle
How far through the sway, in 1/65536
acceleration
Sint32 acceleration
turns (ACTOR's speedLimit);
scUpdateFloatingNut moves it on by
TRIG_TURN / 64 and two random steps
each tick.
orbitCenterX
FIXED orbitCenterX
The spot the Nut sways round, in 16.16 fixed-point pixels (ACTOR's
targetX to targetZ).
orbitCenterY
FIXED orbitCenterY
orbitCenterZ
FIXED orbitCenterZ
bounce
Sint32 bounce
gravity
Sint32 gravity
sceneWord
Sint32 sceneWord
sprite
ORBITING_MAP_ACTOR_SPR *sprite
spriteStorageKind
Uint8 spriteStorageKind
motionFlags
Uint8 motionFlags
arrivalAxis
Uint8 arrivalAxis
The axis watched for arrival; scFloatNut zeroes it.
conditionResult
Uint8 conditionResult
snapToTarget
Uint8 snapToTarget
collisionFlags
Uint8 collisionFlags
steeringFlags
Uint8 steeringFlags
paused
Uint8 paused
retainSpriteCache
Uint8 retainSpriteCache
Set, so the icon's VRAM cache entry is kept while sprites are suspended
or the Nut is off screen.
repeatCount
Uint8 repeatCount
wait
Sint16 wait
refused
Uint8 refused
frozen
Uint8 frozen
Set, so steering, terrain, gravity and floating leave the Nut to its callback.
sceneCount
Uint8 sceneCount
sceneByte
Uint8 sceneByte
timer
Sint16 timer
userValue
Sint16 userValue
watchedActor
struct ACTOR *watchedActor
callback
Uint32 callback
scUpdateFloatingNut, run each tick.