Alchemy
Loading...
Searching...
No Matches

AnimationObject Struct Reference

An animated sprite: its image and shadow, scale, rotation, size and up to four animation layers. More...

#include <field/animspr.h>

Data Fields

struct AnimationSpritePart image
struct AnimationSpritePart shadow
s32 scale
 16.16 fixed point, 0x10000 full size
u8 slot
 VRAM cache entry holding its tiles.
u8 retainCacheEntry: 1
 Keeps the VRAM cache entry when it is released or off screen.
u8 useOwnScale: 1
 Drawn at its own scale, not scaled by distance (fixed camera).
u8 unk1d2: 6
 not named by TBS code
u16 rotation
 1/65536 turns
u8 width
 pixels; zero marks a free sprite
u8 height
 pixels
s8 offsetX
 pixels
s8 offsetY
 pixels
u8 lastNo
 The animation number last selected, which selecting again skips.
u8 dirty
 nonzero redraws its pixels into VRAM when next drawn
u8 flags
 bits: 1 outlined in ObjectSystemWork's edge and fill colours | 0 shadow drawn (set when created)
u8 count
 layers in use, up to the last one present
struct AnimationEntry * entries [4]
 its layers; empty ones null

Detailed Description

An animated sprite: its image and shadow, scale, rotation, size and up to four animation layers.

Definition at line 108 of file animspr.h.

Field Documentation

◆ image

struct AnimationSpritePart AnimationObject::image

Definition at line 109 of file animspr.h.

Referenced by BabiPalace_ApplyEntryState(), BattleActor_UpdateSpritePriorities(), BattleEffect_UpdatePhasedRadialParticle(), BattleFx_RunBoreas(), BattleFx_RunGaia(), BattleFx_RunJudgment(), BattleFx_RunKirin(), BattleFx_RunParticleStreams(), BattleFx_RunRamses(), BattleFx_SpawnItemBreakMode3(), BattleFx_SpawnObjects(), BattleFx_StartEffectObject22(), BattleFx_StartRandomParticleEmitter(), BattlePres_SetActorRecordMode(), Bilibin_SpawnRiverEffect(), Colosso_FadeInCompetitor(), Colosso_ShowItemIcon(), Effect_ConfigureSpawnedParticle(), Effect_InitializeMotion(), EffectSlot_Initialize(), Event_EnterJail(), Event_EnterJail(), Event_EnterNortheastHouse(), Event_EnterNortheastHouse(), Event_EnterNorthHouse(), Event_EnterNorthHouse(), Event_GatherAfterRiverRescue(), Event_HurryToThePlaza(), Event_Rock11Falls(), Event_ShowMythrilBag(), Event_UseBlackOrb(), FieldFx_SpawnBurstParticle(), FieldObject_UpdatePlayerControl(), GomaCavePillar_SpawnFragment(), Imil_InitializeRisingEffect(), ImilFuchinFalls_PlaceDragonsEye(), ImilFuchinFalls_SpawnDust(), Kolima_SpawnCurseSparkle(), Kolima_UpdateCurseDust(), KolimaForestBridge_SpawnCurseSparkle(), KolimaForestTree_SpawnRejectionSpark(), Lalivero_Initialize(), Menu_UpdateEntryObjectTransforms(), MercuryLighthouse_ArriveWithSparks(), MercuryLighthouse_ChargeLights(), MercuryLighthouse_RestoreLights(), MercuryLighthouse_SpawnSparkPair(), MercuryLighthouseAerie_FlickerBeacon(), Object_InitializeSparkle(), Object_MoveOnWorldMap(), Object_Spawn(), ObjectDispatch_SetChildBlendMode(), ObjectMotion_SetActionVariant(), ObjectSystem_UpdateCamera(), ObjectTable_Restore(), ObjectTable_Snapshot(), ObjectVisual_CopyAttributes(), OverlayObject_SpawnKind24AtObject(), OverlayObject_SpawnKind24AtObject(), PsynergyMenu_InitializeEntryObjects(), Render_ApplyProjectedPlacement(), Render_PlaceProjectedSprite(), Render_PlaceSpritePartPair(), Sanctum_RaiseItemIcon(), Sanctum_ShowHealerAfterimage(), Sanctum_SpawnActorSpark(), Sanctum_SpawnOrbitingEffect(), SaveMenu_ShowDjinnSprites(), SaveMenu_ShowPartySprites(), SolSanctumElementalStarRoom_PresentStar(), SolSanctumEruption_PlayWiseOneRescue(), SolSanctumEruption_RaiseElementalArcs(), SolSanctumEruption_SpawnEffectPair(), TolbiShipInteriors_LayFlat(), TolbiShipInteriors_PlaceAnchorCharm(), TolbiShipMast_ShrinkAndStopActor(), ValeBabi_SpawnEffectPair(), ValeHome_SpawnEffectPair(), ValeStorm_CopyLeaderSpritePriority(), ValeStorm_ShowBoulderSweepingDownriver(), ValeStorm_SpawnEffectPair(), Vault_OpenDoorwayAndEnter(), Vault_SpawnDriftingEffect(), VaultInteriors_DefeatThieves(), VaultInteriors_SetPartyImagePriority(), VenusLighthouse_CreateBlendedPassageEffect(), VenusLighthouse_CreateOccludingPassageEffect(), VenusLighthouse_ReleaseFallenCarryBlock(), VenusLighthouseAerie_CombineSaturosAndMenardi(), VenusLighthouseAerie_SpawnLinkedPairEffects(), VenusLighthouseAerie_SpawnSideOrbitParticles(), VenusLighthouseAerie_SpawnUpperOrbitParticles(), VenusLighthouseAerie_UpdateBeaconRise(), WorldMap_CreateLinkedEffects(), WorldMap_SpawnActorEightPuff(), and WorldMap_UpdateTransitionEffect().

◆ shadow

◆ scale

◆ slot

◆ retainCacheEntry

◆ useOwnScale

u8 AnimationObject::useOwnScale

Drawn at its own scale, not scaled by distance (fixed camera).

Definition at line 116 of file animspr.h.

Referenced by ObjectDispatch_SetChildFixedScale(), and Render_PlaceProjectedSprite().

◆ unk1d2

u8 AnimationObject::unk1d2

not named by TBS code

Definition at line 117 of file animspr.h.

◆ rotation

◆ width

◆ height

◆ offsetX

◆ offsetY

◆ lastNo

u8 AnimationObject::lastNo

◆ dirty

◆ flags

u8 AnimationObject::flags

bits: 1 outlined in ObjectSystemWork's edge and fill colours | 0 shadow drawn (set when created)

Definition at line 128 of file animspr.h.

Referenced by BattleActor_SpawnObjectsForList(), BattleFx_ConfigureLinkedObject(), BattleFx_RunGaia(), BattleFx_RunJudgment(), BattleFx_SpawnLinked(), BattleFx_SpawnScaledArcObjects(), BattleFx_StartEffectObject22(), BattleFx_StartRandomParticleEmitter(), Bilibin_SpawnRiverEffect(), Colosso_ShowItemIcon(), EffectSlot_Initialize(), Event_RiseToElementalStarRoom(), Event_UseBlackOrb(), Field_ClimbUp(), Field_TryJumpForward(), FieldFx_BlinkAvoidCaster(), FieldFx_EndCloak(), FieldFx_RunAvoid(), FieldFx_SpawnBurstParticle(), FieldFx_StartCloak(), FieldObject_UpdatePlayerControl(), GomaCavePillar_SpawnFragment(), ImilFuchinFalls_PlaceDragonsEye(), ImilFuchinFalls_SpawnDust(), Kolima_SpawnCurseSparkle(), Kolima_UpdateCurseDust(), KolimaForestBridge_SpawnCurseSparkle(), KolimaForestTree_SpawnRejectionSpark(), MercuryLighthouse_ChargeLights(), MercuryLighthouse_HopAcrossPool(), MercuryLighthouse_RestoreLights(), MercuryLighthouse_SpawnSparkPair(), MercuryLighthouseAerie_FlickerBeacon(), Object_MoveOnWorldMap(), ObjectEffect_EndContextEffect(), ObjectEffect_PrepareContextEffect(), ObjectTable_Snapshot(), OverlayObject_SpawnKind24AtObject(), OverlayObject_SpawnKind24AtObject(), PsynergyMenu_InitializeEntryObjects(), Render_ApplyProjectedPlacement(), Render_PlaceProjectedSprite(), ResourceObject_Create(), Sanctum_RaiseItemIcon(), Sanctum_SpawnActorSpark(), Sanctum_SpawnOrbitingEffect(), SaveMenu_ShowDjinnSprites(), SaveMenu_ShowPartySprites(), SolSanctumElementalStarRoom_PresentStar(), SolSanctumEruption_PlayWiseOneRescue(), SolSanctumEruption_RaiseElementalArcs(), SolSanctumEruption_SpawnEffectPair(), Sprite_ComposeAnimationFrame(), SuhallaDesert_SetUpSecondSceneStorms(), TolbiShipInteriors_MoveCameraAndWait(), Ui_RunIconMonitor(), Vale_MoveActorAlongHigherZPath(), Vale_MoveActorAlongLowerZPath(), ValeBabi_SpawnEffectPair(), ValeHome_SpawnEffectPair(), ValeStorm_SpawnEffectPair(), Vault_SpawnDriftingEffect(), VenusLighthouseAerie_SpawnLinkedPairEffects(), VenusLighthouseAerie_SpawnSideOrbitParticles(), VenusLighthouseAerie_SpawnUpperOrbitParticles(), VenusLighthouseAerie_UpdateBeaconRise(), WorldMap_ApplyMapRotation(), WorldMap_CreateLinkedEffects(), WorldMap_SpawnActorEightPuff(), and WorldMap_UpdateTransitionEffect().

◆ count

◆ entries

struct AnimationEntry* AnimationObject::entries[4]

its layers; empty ones null

Definition at line 130 of file animspr.h.

Referenced by AltinPeak_StopLogAndJumpOff(), Animation_ApplyChildPalette(), Animation_InitializeObjects(), Animation_SetIndexAndInitObjects(), AnimationObjects_SelectAnimation(), AnimationObjects_SetActiveFrameTimers(), AnimationObjects_SetActiveTimerSteps(), Battle_PlaceActorsByFormationKind(), BattleActor_SpawnObjectsForList(), BattleEvent_Playback(), BattleFx_SetupObjectPair(), BattleMotion_SetRecordChildValues(), BattleMotion_ShowDowned(), BattlePres_RunAttack(), BattlePres_RunItem(), BattlePres_RunPlainAttack(), BattlePres_RunPsynergyCast(), BattlePres_RunUnitAction(), BattlePresentation_RunUnitTransition(), Colosso_ShowItemIcon(), FieldFx_BlinkAvoidCaster(), FieldFx_EndCloak(), FieldFx_RunAvoid(), FieldFx_StartCloak(), Inn_CheckIn(), Map_BuildProbeRing(), MercuryLighthouse_FollowLeader(), Object_MoveOnWorldMap(), ObjectDispatch_ApplyValueToKind200Children(), ObjectEffect_EndContextEffect(), ObjectGroup_ApplyIndexedChildValue(), ObjectGroup_ApplyRandomChildValues(), ObjectGroup_SetChildValue(), ObjectGroup_SetChildValueUnlessFifteen(), ObjectGroup_UpdateMembers(), ObjectTable_ReadActiveValue(), ResetMotionRecordGroup(), ResourceMetadata_Register(), ResourceMetadata_ReleaseSlot(), ResourceMetadata_Unregister(), ResourceObject_Release(), Sanctum_ShowHealerAfterimage(), SolSanctumEruption_SpawnEffectPair(), Sprite_ComposeAnimationFrame(), Storm_SetActorFrameMode(), SuhallaDesert_SetUpSecondSceneStorms(), TolbiSpring_SetActorAppearance(), Ui_FillGridColumnFromMetadata(), Ui_SetGridColumnNumber(), ValeBabi_SpawnEffectPair(), ValeHome_SpawnEffectPair(), ValeStorm_SpawnEffectPair(), VenusLighthouse_DispatchPushScript(), VenusLighthouseAerie_SpawnLinkedPairEffects(), and WorldMap_CreateLinkedEffects().