Skip to Content
The Alchemy Project

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

NameDescription
const Sint32 *script
Sint16scriptCursor
Uint16facing
FIXEDxIts position, in 16.16 fixed-point pixels.
FIXEDy
FIXEDz
Sint32groundHeight
Sint32scaleX
Sint32scaleY
Uint16radius
Uint8layer
Uint8priorityFlagsscFloatNut clears ACTOR_PRIORITY_AUTOMATIC.
Sint32velocityX
Sint32velocityY
Sint32velocityZ
Sint32orbitAngleHow far through the sway, in 1/65536
Sint32accelerationturns (ACTOR's speedLimit); scUpdateFloatingNut moves it on by TRIG_TURN / 64 and two random steps each tick.
FIXEDorbitCenterXThe spot the Nut sways round, in 16.16 fixed-point pixels (ACTOR's targetX to targetZ).
FIXEDorbitCenterY
FIXEDorbitCenterZ
Sint32bounce
Sint32gravity
Sint32sceneWord
ORBITING_MAP_ACTOR_SPR *sprite
Uint8spriteStorageKind
Uint8motionFlags
Uint8arrivalAxisThe axis watched for arrival; scFloatNut zeroes it.
Uint8conditionResult
Uint8snapToTarget
Uint8collisionFlags
Uint8steeringFlags
Uint8paused
Uint8retainSpriteCacheSet, so the icon's VRAM cache entry is kept while sprites are suspended or the Nut is off screen.
Uint8repeatCount
Sint16wait
Uint8refused
Uint8frozenSet, so steering, terrain, gravity and floating leave the Nut to its callback.
Uint8sceneCount
Uint8sceneByte
Sint16timer
Sint16userValue
struct ACTOR *watchedActor
Uint32callbackscUpdateFloatingNut, 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.