Skip to Content
The Alchemy Project

struct ORBITER

An actor spiralling round its anchor (scOrbiterSpiral): the circle it keeps in the actor's scene-owned words, and the ticks it has left.

Declared in orbit.h.

Fields

NameDescription
const Sint32 *script
Sint16scriptCursor
Uint16facing
FIXEDxPosition (x, y, z), in 16.16 fixed-point pixels.
FIXEDy
FIXEDz
FIXEDgroundHeight
FIXEDscaleX
FIXEDscaleY
Uint16radius
Uint8layer
Uint8priorityFlags
FIXEDvelocityX
FIXEDvelocityY
FIXEDvelocityZ
FIXEDspeedLimit
FIXEDacceleration
FIXEDtargetX
FIXEDtargetY
FIXEDtargetZ
FIXEDbounce
FIXEDgravity
FIXEDorbitRadius16.16 fixed-point pixels, in sceneWord.
void *sprite
Uint8spriteStorageKind
Uint8motionFlags
Uint8arrivalAxis
Uint8conditionResult
Uint8snapToTarget
Uint8collisionFlags
Uint8steeringFlags
Uint8paused
Uint8retainSpriteCache
Uint8repeatCount
Sint16wait
Uint8refused
Uint8frozen
Uint8countdownTicks left of the spiral.
Uint8sceneByte
Sint16angleIts place on the circle, 1/65536 turns.
Uint16speedTwice its turn a tick, 1/65536 turns.
struct ACTOR *anchorThe actor it circles, in watchedActor.

Description

An actor spiralling round its anchor (scOrbiterSpiral): the circle it keeps in the actor's scene-owned words, and the ticks it has left.

struct ORBITER

Referenced by scAirsRockInsideOrbitAnchor(), scOrbiterSpiral(), scOrbiterStep() and scOrbitSparkSpawn().

Definition at line 14 of file orbit.h.

Fields in detail

script

const Sint32 *script

scriptCursor

Sint16 scriptCursor

facing

Uint16 facing

x

FIXED x

Position (x, y, z), in 16.16 fixed-point pixels.

y

FIXED y

z

FIXED z

groundHeight

FIXED groundHeight

scaleX

FIXED scaleX

scaleY

FIXED scaleY

radius

Uint16 radius

layer

Uint8 layer

priorityFlags

Uint8 priorityFlags

velocityX

FIXED velocityX

velocityY

FIXED velocityY

velocityZ

FIXED velocityZ

speedLimit

FIXED speedLimit

acceleration

FIXED acceleration

targetX

FIXED targetX

targetY

FIXED targetY

targetZ

FIXED targetZ

bounce

FIXED bounce

gravity

FIXED gravity

orbitRadius

FIXED orbitRadius

16.16 fixed-point pixels, in sceneWord.

sprite

void *sprite

spriteStorageKind

Uint8 spriteStorageKind

motionFlags

Uint8 motionFlags

arrivalAxis

Uint8 arrivalAxis

conditionResult

Uint8 conditionResult

snapToTarget

Uint8 snapToTarget

collisionFlags

Uint8 collisionFlags

steeringFlags

Uint8 steeringFlags

paused

Uint8 paused

retainSpriteCache

Uint8 retainSpriteCache

repeatCount

Uint8 repeatCount

wait

Sint16 wait

refused

Uint8 refused

frozen

Uint8 frozen

countdown

Uint8 countdown

Ticks left of the spiral.

sceneByte

Uint8 sceneByte

angle

Sint16 angle

Its place on the circle, 1/65536 turns.

speed

Uint16 speed

Twice its turn a tick, 1/65536 turns.

anchor

struct ACTOR *anchor

The actor it circles, in watchedActor.