struct BATTLE_OBJECT
A unit's place on the battlefield: its actor, resources and animations, its anchor spot and scale, and the statuses it shows. More…
Declared in battle_action.h.
Fields
| Name | Description | |
|---|---|---|
struct ACTOR * | actor | NULL once released |
Uint16 | resource | the unit's sprite |
Uint16 | overlay | a second sprite drawn over it, the weapon; 0 for none |
Uint16 | animation | the status icon's animation shown; 0 for none |
Uint16 | shadow | shadow sprite under the unit (SPRITE_BATTLE_SHADOW) |
FIXED | anchorX | 16.16 fixed-point pixels |
FIXED | anchorZ | 16.16 fixed-point pixels |
Sint32 | palette | SPR_COL_MODE: enemy's own, 1 link opponent, else 0 |
FIXED | scale | 16.16 fixed point, toFIXED(1) full size |
Sint16 | activeStatuses | a bit per status with an icon (ICON_) |
Uint8 | shownStatus | the status whose icon is shown |
Sint8 | cycleTimer | ticks until the next status icon |
struct SPR_ANIMATION * | animationEntry | the status icon's sprite, or NULL |
struct SPR_ANIMATION * | shadowEntry | the shadow's sprite, or NULL |
Sint16 | active | btObjectMarkForRelease: freed by btObjectDestroyAll |
Sint16 | fading | set while a fallen enemy's picture is being removed |
Description
A unit's place on the battlefield: its actor, resources and animations, its
anchor spot and scale, and the statuses it shows. BATTLE_STATE.objects holds
the 14, reached by unit id through btObjectGet; btObjectMake fills one in
when the unit is placed.
struct BATTLE_OBJECT
Referenced by btAbilityApplyToTarget(), btAutoBattleApplyDamage(), btEffectHopBackToSpot(), btEffectRunCybele(), btEffectRunDeathPlunge(), btEffectRunProcne(), btEffectSetApproachMotion(), btEffectTintBattler(), btHighlightSetSpriteMode(), btMotionApplyKnockback(), btMotionApplyPairMidpoint(), btMotionApproachTarget(), btMotionHopBack(), btMotionLeapBack(), btMotionLeapToward(), btMotionReturnObjectToSpot(), btMotionReturnToSpot(), btMotionSetupEscapeObject(), btObjectDestroyAll(), btObjectDestroySprites(), btObjectGet(), btObjectMake(), btObjectMarkForRelease(), btObjectSpawnObjectsForList(), btObjectUpdateSpritePriorities(), btPlacementRelayoutEnemies(), btPlaybackRun(), btStatusIconCycle(), btTransitionRun(), btUnitBuildStatusFlags() and btUnitRemoveEnemy().
Definition at line 18 of file battle_action.h.
Fields in detail
actor
struct ACTOR *actor
NULL once released
resource
Uint16 resource
the unit's sprite
overlay
Uint16 overlay
a second sprite drawn over it, the weapon; 0 for none
animation
Uint16 animation
the status icon's animation shown; 0 for none
shadow
Uint16 shadow
shadow sprite under the unit
(SPRITE_BATTLE_SHADOW)
anchorX
FIXED anchorX
16.16 fixed-point pixels
anchorZ
FIXED anchorZ
16.16 fixed-point pixels
palette
Sint32 palette
SPR_COL_MODE: enemy's own, 1 link
opponent, else 0
scale
FIXED scale
16.16 fixed point, toFIXED(1) full
size
activeStatuses
Sint16 activeStatuses
a bit per status with an icon (ICON_)
shownStatus
Uint8 shownStatus
the status whose icon is shown
cycleTimer
Sint8 cycleTimer
ticks until the next status icon
animationEntry
struct SPR_ANIMATION *animationEntry
the status icon's sprite, or NULL
shadowEntry
struct SPR_ANIMATION *shadowEntry
the shadow's sprite, or NULL
active
Sint16 active
btObjectMarkForRelease: freed by
btObjectDestroyAll
fading
Sint16 fading
set while a fallen enemy's picture is being removed